radames commited on
Commit
73a7fff
1 Parent(s): 07fce36

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +13 -0
index.html CHANGED
@@ -7,6 +7,19 @@
7
  <link rel="stylesheet" href="style.css" />
8
  </head>
9
  <body>
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  <div class="card">
11
  <h1>Welcome to your static Space!</h1>
12
  <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
 
7
  <link rel="stylesheet" href="style.css" />
8
  </head>
9
  <body>
10
+ <script type="module">
11
+ import { Client } from "https://esm.run/@gradio/client";
12
+
13
+ const client = await Client.connect("radames/flash-sd3-taesd3");
14
+ const result = await client.predict("/infer", {
15
+ prompt: "Hello!!",
16
+ seed: 0,
17
+ randomize_seed: true,
18
+ });
19
+
20
+ console.log(result.data);
21
+
22
+ </script>
23
  <div class="card">
24
  <h1>Welcome to your static Space!</h1>
25
  <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>