File size: 1,741 Bytes
947141a
674da2a
 
 
 
 
0777fdc
bb213b3
 
 
 
 
 
674da2a
 
 
 
 
 
 
 
 
 
bb213b3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
674da2a
947141a
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<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>