awacke1 commited on
Commit
aab362b
·
verified ·
1 Parent(s): 2c74317

Update app.py

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