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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -10,12 +10,8 @@ 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
- 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():
 
10
  import emoji
11
 
12
  text_gen=gr.Interface.load("spaces/phenomenon1981/MagicPrompt-Stable-Diffusion")
13
+ def get_prompts(prompt_text):
14
+ return text_gen(prompt_text)
 
 
 
 
15
  proc1=gr.Interface.load("models/dreamlike-art/dreamlike-diffusion-1.0")
16
 
17
  def restart_script_periodically():