Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -99,7 +99,7 @@ def send_it5(inputs, noise_level, proc1=proc1):
|
|
99 |
output5 = proc1(prompt_with_noise)
|
100 |
return output5
|
101 |
|
102 |
-
def
|
103 |
prompt_with_noise = add_random_noise(inputs, noise_level)
|
104 |
while queue.qsize() >= queue_threshold:
|
105 |
time.sleep(2)
|
@@ -181,11 +181,12 @@ with gr.Blocks(css='style.css') as demo:
|
|
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])
|
|
|
184 |
run.click(send_it2, inputs=[prompt, noise_level], outputs=[output2])
|
185 |
run.click(send_it3, inputs=[prompt, noise_level], outputs=[output3])
|
186 |
run.click(send_it4, inputs=[prompt, noise_level], outputs=[output4])
|
187 |
run.click(send_it5, inputs=[prompt, noise_level], outputs=[output5])
|
188 |
-
|
189 |
|
190 |
with gr.Row():
|
191 |
gr.HTML(
|
|
|
99 |
output5 = proc1(prompt_with_noise)
|
100 |
return output5
|
101 |
|
102 |
+
def send_it7(inputs, noise_level, proc1=proc1):
|
103 |
prompt_with_noise = add_random_noise(inputs, noise_level)
|
104 |
while queue.qsize() >= queue_threshold:
|
105 |
time.sleep(2)
|
|
|
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])
|
184 |
+
run.click(send_it7, inputs=[prompt, noise_level], outputs=[output0])
|
185 |
run.click(send_it2, inputs=[prompt, noise_level], outputs=[output2])
|
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():
|
192 |
gr.HTML(
|