phenomenon1981 commited on
Commit
e724a75
1 Parent(s): a6e3fcb

Update app.py

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