Spaces:
Sleeping
Sleeping
Changed from Named Entity Recognition (NER) to text-to-image
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ import gradio as gr
|
|
| 9 |
hf_api_key = os.environ['HF_API_KEY']
|
| 10 |
|
| 11 |
# Text-to-image endpoint
|
| 12 |
-
get_completion = pipeline("
|
| 13 |
|
| 14 |
|
| 15 |
# A helper function to convert the PIL image to base64,
|
|
|
|
| 9 |
hf_api_key = os.environ['HF_API_KEY']
|
| 10 |
|
| 11 |
# Text-to-image endpoint
|
| 12 |
+
get_completion = pipeline("text-to-image", model="sd-legacy/stable-diffusion-v1-5")
|
| 13 |
|
| 14 |
|
| 15 |
# A helper function to convert the PIL image to base64,
|