Spaces:
Runtime error
Runtime error
phenomenon1981
commited on
Commit
·
13b32bd
1
Parent(s):
b9944f5
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,8 @@ from queue import Queue
|
|
9 |
from threading import Thread
|
10 |
|
11 |
text_gen=gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion")
|
|
|
|
|
12 |
proc1=gr.Interface.load("models/dreamlike-art/dreamlike-diffusion-1.0")
|
13 |
|
14 |
def restart_script_periodically():
|
@@ -101,10 +103,6 @@ def send_it8(inputs, noise_level, proc1=proc1):
|
|
101 |
output8 = proc1(prompt_with_noise)
|
102 |
return output8
|
103 |
|
104 |
-
def get_prompts(prompt_text):
|
105 |
-
output = text_gen(prompt_text)
|
106 |
-
return output
|
107 |
-
|
108 |
|
109 |
with gr.Blocks() as myface:
|
110 |
with gr.Row():
|
|
|
9 |
from threading import Thread
|
10 |
|
11 |
text_gen=gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion")
|
12 |
+
def get_prompts(prompt_text):
|
13 |
+
return text_gen(prompt_text)
|
14 |
proc1=gr.Interface.load("models/dreamlike-art/dreamlike-diffusion-1.0")
|
15 |
|
16 |
def restart_script_periodically():
|
|
|
103 |
output8 = proc1(prompt_with_noise)
|
104 |
return output8
|
105 |
|
|
|
|
|
|
|
|
|
106 |
|
107 |
with gr.Blocks() as myface:
|
108 |
with gr.Row():
|