Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -75,6 +75,14 @@ def send_it2(inputs, noise_level, proc1=proc1):
|
|
75 |
output2 = proc1(prompt_with_noise)
|
76 |
return output2
|
77 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
def send_it3(inputs, noise_level, proc1=proc1):
|
79 |
prompt_with_noise = add_random_noise(inputs, noise_level)
|
80 |
while queue.qsize() >= queue_threshold:
|
@@ -178,6 +186,9 @@ with gr.Blocks(css='style.css') as demo:
|
|
178 |
with gr.Row():
|
179 |
output5=gr.Image(label="DreamAnything",show_label=False,min_width=640)
|
180 |
output0=gr.Image(label="DreamAnything",show_label=False,min_width=640)
|
|
|
|
|
|
|
181 |
|
182 |
see_prompts.click(get_prompts, inputs=[input_text], outputs=[prompt], queue=False)
|
183 |
run.click(send_it1, inputs=[prompt, noise_level], outputs=[output1])
|
@@ -186,6 +197,7 @@ with gr.Blocks(css='style.css') as demo:
|
|
186 |
run.click(send_it3, inputs=[prompt, noise_level], outputs=[output3])
|
187 |
run.click(send_it4, inputs=[prompt, noise_level], outputs=[output4])
|
188 |
run.click(send_it5, inputs=[prompt, noise_level], outputs=[output5])
|
|
|
189 |
|
190 |
|
191 |
with gr.Row():
|
|
|
75 |
output2 = proc1(prompt_with_noise)
|
76 |
return output2
|
77 |
|
78 |
+
def send_itX(inputs, noise_level, proc1=proc1):
|
79 |
+
prompt_with_noise = add_random_noise(inputs, noise_level)
|
80 |
+
while queue.qsize() >= queue_threshold:
|
81 |
+
time.sleep(2)
|
82 |
+
queue.put(prompt_with_noise)
|
83 |
+
outputX = proc1(prompt_with_noise)
|
84 |
+
return outputX
|
85 |
+
|
86 |
def send_it3(inputs, noise_level, proc1=proc1):
|
87 |
prompt_with_noise = add_random_noise(inputs, noise_level)
|
88 |
while queue.qsize() >= queue_threshold:
|
|
|
186 |
with gr.Row():
|
187 |
output5=gr.Image(label="DreamAnything",show_label=False,min_width=640)
|
188 |
output0=gr.Image(label="DreamAnything",show_label=False,min_width=640)
|
189 |
+
with gr.Row():
|
190 |
+
with gr.Row():
|
191 |
+
outputX=gr.Image(label="DreamAnything",show_label=False,min_width=640)
|
192 |
|
193 |
see_prompts.click(get_prompts, inputs=[input_text], outputs=[prompt], queue=False)
|
194 |
run.click(send_it1, inputs=[prompt, noise_level], outputs=[output1])
|
|
|
197 |
run.click(send_it3, inputs=[prompt, noise_level], outputs=[output3])
|
198 |
run.click(send_it4, inputs=[prompt, noise_level], outputs=[output4])
|
199 |
run.click(send_it5, inputs=[prompt, noise_level], outputs=[output5])
|
200 |
+
run.click(send_itX, inputs=[prompt, noise_level], outputs=[outputX])
|
201 |
|
202 |
|
203 |
with gr.Row():
|