Spaces:
Runtime error
Runtime error
phenomenon1981
commited on
Commit
•
111a047
1
Parent(s):
7590714
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,10 @@ import emoji
|
|
11 |
|
12 |
text_gen=gr.Interface.load("spaces/phenomenon1981/MagicPrompt-Stable-Diffusion")
|
13 |
def get_prompts(prompt_text):
|
14 |
-
|
|
|
|
|
|
|
15 |
proc1=gr.Interface.load("models/dreamlike-art/dreamlike-diffusion-1.0")
|
16 |
|
17 |
def restart_script_periodically():
|
|
|
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("dreamlikeart, " + prompt_text)
|
16 |
+
else:
|
17 |
+
return text_gen("")
|
18 |
proc1=gr.Interface.load("models/dreamlike-art/dreamlike-diffusion-1.0")
|
19 |
|
20 |
def restart_script_periodically():
|