yieldray-draw.web.val.run
Readme
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { form, InputNumber, InputTextArea, webpage } from "https://crux.land/api/get/66Y98x";
export const draw = () =>
new Response(
webpage(
{
title: "draw",
header: `<h1>Draw</h1>`,
footer: "<p>Powered by val.town</p>",
},
form(
{
action: "https://lily.deno.dev/",
method: "POST",
encoding: "application/json",
},
{
prompts: InputTextArea({ value: "girl" }),
negativePrompts: InputTextArea(),
width: InputNumber({ value: 768 }),
height: InputNumber({ value: 512 }),
step: InputNumber({ placeholder: "default 40" }),
cfg: InputNumber({ placeholder: "default 6" }),
seed: InputNumber({ placeholder: "leave blank to auto generate" }),
},
),
),
{ headers: { "content-type": "text/html" } },
);
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
v3
April 30, 2024