fffiloni commited on
Commit
a3d1cf6
1 Parent(s): 8224ed6

fix invoked spaces loading methods

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.Interface.load(name="spaces/Gustavosta/MagicPrompt-Stable-Diffusion")
6
- stable_diffusion = gr.Blocks.load(name="spaces/runwayml/stable-diffusion-v1-5")
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)