test-api / index.html
radames's picture
Update index.html
73a7fff verified
raw
history blame contribute delete
994 Bytes
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>My static Space</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<script type="module">
import { Client } from "https://esm.run/@gradio/client";
const client = await Client.connect("radames/flash-sd3-taesd3");
const result = await client.predict("/infer", {
prompt: "Hello!!",
seed: 0,
randomize_seed: true,
});
console.log(result.data);
</script>
<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>
</body>
</html>