Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -81,9 +81,10 @@ def send_it2(inputs, noise_level, proc1=proc1):
|
|
81 |
#return output4
|
82 |
|
83 |
def send_it_all(inputs, noise_level, proc1=proc1):
|
|
|
84 |
output1 = send_it1(inputs, noise_level, proc1)
|
85 |
output2 = send_it2(inputs, noise_level, proc1)
|
86 |
-
return
|
87 |
|
88 |
with gr.Blocks(css='style.css') as demo:
|
89 |
gr.HTML(
|
@@ -143,12 +144,13 @@ with gr.Blocks(css='style.css') as demo:
|
|
143 |
run.click(send_it1, inputs=[prompt, noise_level], outputs=[output1])
|
144 |
run.click(send_it2, inputs=[prompt, noise_level], outputs=[output2])
|
145 |
|
146 |
-
with gr.Column() as
|
147 |
input_txt = gr.Text()
|
148 |
output_text = gr.Text()
|
149 |
submit_text = gr.Button()
|
150 |
-
submit_text.click(send_it_all, inputs=[input_txt] , outputs=[output1], api_name="text")
|
151 |
-
|
|
|
152 |
|
153 |
|
154 |
with gr.Row():
|
|
|
81 |
#return output4
|
82 |
|
83 |
def send_it_all(inputs, noise_level, proc1=proc1):
|
84 |
+
noise_level = 1.00
|
85 |
output1 = send_it1(inputs, noise_level, proc1)
|
86 |
output2 = send_it2(inputs, noise_level, proc1)
|
87 |
+
return output1, output2
|
88 |
|
89 |
with gr.Blocks(css='style.css') as demo:
|
90 |
gr.HTML(
|
|
|
144 |
run.click(send_it1, inputs=[prompt, noise_level], outputs=[output1])
|
145 |
run.click(send_it2, inputs=[prompt, noise_level], outputs=[output2])
|
146 |
|
147 |
+
with gr.Column() as teste:
|
148 |
input_txt = gr.Text()
|
149 |
output_text = gr.Text()
|
150 |
submit_text = gr.Button()
|
151 |
+
submit_text.click(send_it_all, inputs=[input_txt] , outputs=[output1, output2], api_name="text", show_progress=True)
|
152 |
+
|
153 |
+
teste.unrender()
|
154 |
|
155 |
|
156 |
with gr.Row():
|