phenomenon1981 commited on
Commit
48b6909
·
1 Parent(s): dbf2f94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -10,10 +10,12 @@ from threading import Thread
10
  import emoji
11
 
12
  text_gen=gr.Interface.load("spaces/phenomenon1981/MagicPrompt-Stable-Diffusion")
13
- def get_prompts(prompt_text):
14
- if prompt_text == "":
15
  return text_gen()
16
- return text_gen("dreamlikeart, " + prompt_text)
 
 
17
  proc1=gr.Interface.load("models/dreamlike-art/dreamlike-diffusion-1.0")
18
 
19
  def restart_script_periodically():
 
10
  import emoji
11
 
12
  text_gen=gr.Interface.load("spaces/phenomenon1981/MagicPrompt-Stable-Diffusion")
13
+ def get_prompts(prompt_text=""):
14
+ if prompt_text=="":
15
  return text_gen()
16
+ else:
17
+ return text_gen("dreamlikeart, " + prompt_text)
18
+
19
  proc1=gr.Interface.load("models/dreamlike-art/dreamlike-diffusion-1.0")
20
 
21
  def restart_script_periodically():