Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -107,13 +107,13 @@ def send_it5(inputs, noise_level, proc1=proc1):
|
|
107 |
output5 = proc1(prompt_with_noise)
|
108 |
return output5
|
109 |
|
110 |
-
def send_it7(inputs, noise_level, proc1=proc1):
|
111 |
-
prompt_with_noise = add_random_noise(inputs, noise_level)
|
112 |
-
while queue.qsize() >= queue_threshold:
|
113 |
-
|
114 |
-
queue.put(prompt_with_noise)
|
115 |
-
output5 = proc1(prompt_with_noise)
|
116 |
-
return output0
|
117 |
|
118 |
|
119 |
with gr.Blocks(css='style.css') as demo:
|
@@ -186,13 +186,13 @@ with gr.Blocks(css='style.css') as demo:
|
|
186 |
with gr.Row():
|
187 |
output5=gr.Image(label="DreamAnything",show_label=False,min_width=640)
|
188 |
outputX=gr.Image(label="DreamAnything",show_label=False,min_width=640)
|
189 |
-
with gr.Row():
|
190 |
-
with gr.Row():
|
191 |
-
output0=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])
|
195 |
-
run.click(send_it7, inputs=[prompt, noise_level], outputs=[output0])
|
196 |
run.click(send_it2, inputs=[prompt, noise_level], outputs=[output2])
|
197 |
run.click(send_it3, inputs=[prompt, noise_level], outputs=[output3])
|
198 |
run.click(send_it4, inputs=[prompt, noise_level], outputs=[output4])
|
|
|
107 |
output5 = proc1(prompt_with_noise)
|
108 |
return output5
|
109 |
|
110 |
+
#def send_it7(inputs, noise_level, proc1=proc1):
|
111 |
+
#prompt_with_noise = add_random_noise(inputs, noise_level)
|
112 |
+
#while queue.qsize() >= queue_threshold:
|
113 |
+
# time.sleep(2)
|
114 |
+
#queue.put(prompt_with_noise)
|
115 |
+
#output5 = proc1(prompt_with_noise)
|
116 |
+
#return output0
|
117 |
|
118 |
|
119 |
with gr.Blocks(css='style.css') as demo:
|
|
|
186 |
with gr.Row():
|
187 |
output5=gr.Image(label="DreamAnything",show_label=False,min_width=640)
|
188 |
outputX=gr.Image(label="DreamAnything",show_label=False,min_width=640)
|
189 |
+
#with gr.Row():
|
190 |
+
#with gr.Row():
|
191 |
+
#output0=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])
|
195 |
+
#run.click(send_it7, inputs=[prompt, noise_level], outputs=[output0])
|
196 |
run.click(send_it2, inputs=[prompt, noise_level], outputs=[output2])
|
197 |
run.click(send_it3, inputs=[prompt, noise_level], outputs=[output3])
|
198 |
run.click(send_it4, inputs=[prompt, noise_level], outputs=[output4])
|