DmitrMakeev commited on
Commit
bb213b3
1 Parent(s): 0777fdc

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +36 -0
index.html CHANGED
@@ -5,6 +5,12 @@
5
  <meta name="viewport" content="width=device-width" />
6
  <title>My static Space</title>
7
  <link rel="stylesheet" href="https://huggingface.co/spaces/vk-ai-system/flask_inference_api/resolve/main/style.css" />
 
 
 
 
 
 
8
  </head>
9
  <body>
10
  <div class="card">
@@ -15,5 +21,35 @@
15
  <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
  </p>
17
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  </body>
19
  </html>
 
5
  <meta name="viewport" content="width=device-width" />
6
  <title>My static Space</title>
7
  <link rel="stylesheet" href="https://huggingface.co/spaces/vk-ai-system/flask_inference_api/resolve/main/style.css" />
8
+
9
+
10
+ <script src="https://cdn.jsdelivr.net/npm/@gradio/[email protected]/dist/index.min.js"></script>
11
+
12
+
13
+
14
  </head>
15
  <body>
16
  <div class="card">
 
21
  <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
22
  </p>
23
  </div>
24
+
25
+
26
+ <script>
27
+
28
+
29
+ import { client } from "@gradio/client";
30
+
31
+ const app = await client("https://hysts-kandinsky-2-2.hf.space/");
32
+ const result = await app.predict("/run", [
33
+ "Howdy!", // string in 'Prompt' Textbox component
34
+ "Howdy!", // string in 'Negative prompt' Textbox component
35
+ 0, // number (numeric value between 0 and 2147483647) in 'Seed' Slider component
36
+ 256, // number (numeric value between 256 and 1024) in 'Width' Slider component
37
+ 256, // number (numeric value between 256 and 1024) in 'Height' Slider component
38
+ 1, // number (numeric value between 1 and 20) in 'Guidance scale for prior' Slider component
39
+ 1, // number (numeric value between 1 and 20) in 'Guidance scale' Slider component
40
+ 10, // number (numeric value between 10 and 100) in 'Number of inference steps for prior' Slider component
41
+ 10, // number (numeric value between 10 and 150) in 'Number of inference steps' Slider component
42
+ ]);
43
+
44
+ console.log(result.data);
45
+
46
+
47
+ </script>
48
+
49
+
50
+
51
+
52
+
53
+
54
  </body>
55
  </html>