Skip to content

Instantly share code, notes, and snippets.

from marvin import ai_fn
from pydantic import BaseModel
import asyncio
class Fruit(BaseModel):
name: str
@ai_fn
const sleep = ms => { return new Promise(resolve => setTimeout(resolve, ms)) }
const injectButton = async () => {
// Similiarly, we also need to wait for the page to load in...
await sleep(1000);
console.log("hey");
const {url} = await fetch("https://bhchiang--get-url-get.modal.run/").then(r => r.json());
const URL = `${url}/get_prompt`;