cerebras_codermain.tsx1 match
1165<meta property="og:description" content="Turn your ideas into fully functional apps in less than a second – powered by Llama3.3-70b on Cerebras's super-fast wafer chips. Code is 100% open-source, hosted on Val Town."">
1166<meta property="og:type" content="website">
1167<meta property="og:image" content="https://stevekrouse-blob_admin.web.val.run/api/public/CerebrasCoderOG.jpg">
1168
1169
tldraw_computer_examplemain.tsx3 matches
16};
1718type ImageData = {
19type: "image";
20text: string;
21name?: string | undefined;
48};
4950export type Data = BooleanData | TextData | ImageData | SpeechData | WebsiteData | FileData;
5152type DataComponentRequestBody = {
tldraw_computer_examplemain.tsx3 matches
16};
1718type ImageData = {
19type: "image";
20text: string;
21name?: string | undefined;
48};
4950export type Data = BooleanData | TextData | ImageData | SpeechData | WebsiteData | FileData;
5152type DataComponentRequestBody = {
cerebras_codermain.tsx1 match
1165<meta property="og:description" content="Turn your ideas into fully functional apps in less than a second – powered by Llama3.3-70b on Cerebras's super-fast wafer chips. Code is 100% open-source, hosted on Val Town."">
1166<meta property="og:type" content="website">
1167<meta property="og:image" content="https://stevekrouse-blob_admin.web.val.run/api/public/CerebrasCoderOG.jpg">
1168
1169
simpsonifyMemain.tsx16 matches
23const basePrompt =
4`Generate an image generation model prompt (description) for the previous image, in the Simpsons cartoon style
5Be extremely detailed in describing:
6- Hair color
15- Lighting and shadows
16- Any props or accessories
17The final result should result in a image of 2d Simpsons figures that look like the original.
18Output only the prompt and nothing else.`;
1920const settings = {
21text_bot: "gpt-4o",
22image_bot: "FLUX-pro-1.1",
23};
2431const url = new URL(httpReq.url);
3233const imageDescriptionPrompt = basePrompt;
3435if (!imgUrl) {
36yield "Please upload a image";
37yield events.done();
38}
39let baseStatus = "Analyzing image";
4041const msgToForward = { ...req.query.at(-1) };
42msgToForward.content = "Describe the contents of this image";
4344msgToForward.content = imageDescriptionPrompt;
45const query = {
46...req,
47query: [{
48...lastMsg,
49content: imageDescriptionPrompt,
50role: "user",
51attachments: lastMsg?.attachments,
59let text = "";
60console.log("sending to gpt4o", query);
61yield `Analyzing image...`;
62for await (const msg of gpt4oQuery) {
63if (msg.event == "text") {
73}
7475const imageQuery = {
76...req,
77query: [{
80}],
81};
82const imageStream = forward({
83toBotName: settings.image_bot,
84query: imageQuery,
85accessKey: req.access_key,
86});
87for await (const msg of imageStream) {
88yield msg;
89}
95server_bot_dependencies: {
96[settings.text_bot]: 1,
97[settings.image_bot]: 1,
98},
99introduction_message: "Send me a picture and I will make it cartoon like.",
scribbleToDrawingmain.tsx5 matches
13const content = lastMsg?.content?.trim();
14if (!url) {
15yield "Please send a image";
16yield events.done();
17}
1819yield events.replace("Generating image");
20let success = null;
21let error = null;
22replicate.run("jagilley/controlnet-scribble:435061a1b5a4c1e26740464bf786efdfa9cb3a3ac488595a2de23e143fdb0117", {
23input: {
24image: url,
25prompt: content || "photorealistic",
26},
35while (!success && !error) {
36console.log("waiting", success, error);
37yield events.replace(`Generating image (${seconds++} seconds)`);
38await sleep(1000);
39if (seconds > 30) {
51} else {
52console.log("success!", success);
53yield events.replace(`\n\n`);
54yield "\n";
55}
assertiveBeigeCarpmain.tsx5 matches
13const content = lastMsg?.content?.trim();
14if (!url) {
15yield "Please send a image";
16yield events.done();
17}
1819yield events.replace("Generating image");
20let success = null;
21let error = null;
22replicate.run("jagilley/controlnet-scribble:435061a1b5a4c1e26740464bf786efdfa9cb3a3ac488595a2de23e143fdb0117", {
23input: {
24image: url,
25prompt: content || "photorealistic",
26},
35while (!success && !error) {
36console.log("waiting", success, error);
37yield events.replace(`Generating image (${seconds++} seconds)`);
38await sleep(1000);
39if (seconds > 30) {
51} else {
52console.log("success!", success);
53yield events.replace(`\n\n`);
54yield "\n";
55}
tldraw_computer_examplemain.tsx3 matches
16};
1718type ImageData = {
19type: "image";
20text: string;
21name?: string | undefined;
48};
4950export type Data = BooleanData | TextData | ImageData | SpeechData | WebsiteData | FileData;
5152type DataComponentRequestBody = {
incredibleYellowTickmain.tsx3 matches
16};
1718type ImageData = {
19type: "image";
20text: string;
21name?: string | undefined;
40};
4142export type Data = BooleanData | TextData | ImageData | SpeechData | WebsiteData;
4344export default async function(req: Request): Promise<Response> {
blob_adminREADME.md1 match
3This is a lightweight Blob Admin interface to view and debug your Blob data.
45
67Versions 0-17 of this val were done with Hono and server-rendering.