Commit ·
13fe440
1
Parent(s): bb213b3
Update index.html
Browse files6 unmodified lines78910101112139 unmodified lines232425262728293031323334353637383940414243444546472627286 unmodified lines <link rel="stylesheet" href="https://huggingface.co/spaces/vk-ai-system/flask_inference_api/resolve/main/style.css" />
<script src="https://cdn.jsdelivr.net/npm/@gradio/client@0.4.1/dist/index.min.js"></script>
9 unmodified lines </div>
<script>
import { client } from "@gradio/client";
const app = await client("https://hysts-kandinsky-2-2.hf.space/");const result = await app.predict("/run", [ "Howdy!", // string in 'Prompt' Textbox component "Howdy!", // string in 'Negative prompt' Textbox component 0, // number (numeric value between 0 and 2147483647) in 'Seed' Slider component 256, // number (numeric value between 256 and 1024) in 'Width' Slider component 256, // number (numeric value between 256 and 1024) in 'Height' Slider component 1, // number (numeric value between 1 and 20) in 'Guidance scale for prior' Slider component 1, // number (numeric value between 1 and 20) in 'Guidance scale' Slider component 10, // number (numeric value between 10 and 100) in 'Number of inference steps for prior' Slider component 10, // number (numeric value between 10 and 150) in 'Number of inference steps' Slider component ]);
console.log(result.data);
</script>
index.html+1-23