Update app.py
Browse files
app.py
CHANGED
|
@@ -5,9 +5,9 @@ import os
|
|
| 5 |
# make sure it's available; otherwise, you can define these variables directly or remove them if not needed.
|
| 6 |
# from share_btn import community_icon_html, loading_icon_html, share_js
|
| 7 |
|
| 8 |
-
# Load interfaces from Hugging Face Spaces
|
| 9 |
-
text_gen = gr.Interface.load(
|
| 10 |
-
stable_diffusion = gr.Interface.load(
|
| 11 |
|
| 12 |
def get_images(prompt):
|
| 13 |
# Call the stable_diffusion interface with the prompt
|
|
|
|
| 5 |
# make sure it's available; otherwise, you can define these variables directly or remove them if not needed.
|
| 6 |
# from share_btn import community_icon_html, loading_icon_html, share_js
|
| 7 |
|
| 8 |
+
# Load interfaces from Hugging Face Spaces without using 'name='
|
| 9 |
+
text_gen = gr.Interface.load("spaces/Gustavosta/MagicPrompt-Stable-Diffusion")
|
| 10 |
+
stable_diffusion = gr.Interface.load("spaces/runwayml/stable-diffusion-v1-5")
|
| 11 |
|
| 12 |
def get_images(prompt):
|
| 13 |
# Call the stable_diffusion interface with the prompt
|