fix invoked spaces loading methods
#4
by
fffiloni
- opened
app.py
CHANGED
|
@@ -2,8 +2,8 @@ import gradio as gr
|
|
| 2 |
import os
|
| 3 |
from share_btn import community_icon_html, loading_icon_html, share_js
|
| 4 |
|
| 5 |
-
text_gen = gr.
|
| 6 |
-
stable_diffusion = gr.
|
| 7 |
|
| 8 |
def get_images(prompt):
|
| 9 |
gallery_dir = stable_diffusion(prompt, fn_index=2)
|
|
|
|
| 2 |
import os
|
| 3 |
from share_btn import community_icon_html, loading_icon_html, share_js
|
| 4 |
|
| 5 |
+
text_gen = gr.load(name="Gustavosta/MagicPrompt-Stable-Diffusion", src="spaces")
|
| 6 |
+
stable_diffusion = gr.load(name="runwayml/stable-diffusion-v1-5", src="spaces")
|
| 7 |
|
| 8 |
def get_images(prompt):
|
| 9 |
gallery_dir = stable_diffusion(prompt, fn_index=2)
|