Spaces:
Sleeping
Sleeping
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width" /> | |
| <title>My static Space</title> | |
| <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/[email protected]/dist/index.min.js"></script> | |
| </head> | |
| <body> | |
| <div class="card"> | |
| <h1>Welcome to your static Space!</h1> | |
| <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p> | |
| <p> | |
| Also don't forget to check the | |
| <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>. | |
| </p> | |
| </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> | |
| </body> | |
| </html> |