Spaces:
Sleeping
Sleeping
remove loose }
Browse files
app.py
CHANGED
|
@@ -376,7 +376,7 @@ image = pipe(prompt).images[0]
|
|
| 376 |
You can use <a href="https://github.com/huggingface/huggingface.js">huggingface.js</a> to infer text-to-image models on Hugging Face Hub.
|
| 377 |
</p>
|
| 378 |
<pre style="background: #f5f5f5; padding: 15px; border-radius: 5px; overflow-x: auto;">
|
| 379 |
-
import {{
|
| 380 |
|
| 381 |
const inference = new InferenceClient(HF_TOKEN);
|
| 382 |
await inference.textToImage({{
|
|
|
|
| 376 |
You can use <a href="https://github.com/huggingface/huggingface.js">huggingface.js</a> to infer text-to-image models on Hugging Face Hub.
|
| 377 |
</p>
|
| 378 |
<pre style="background: #f5f5f5; padding: 15px; border-radius: 5px; overflow-x: auto;">
|
| 379 |
+
import {{ InferenceClient }} from "@huggingface/inference";
|
| 380 |
|
| 381 |
const inference = new InferenceClient(HF_TOKEN);
|
| 382 |
await inference.textToImage({{
|