Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -32,11 +32,12 @@ with gr.Blocks() as demo:
|
|
32 |
with gr.Column():
|
33 |
output0 = gr.Label(label=models[0])
|
34 |
input = gr.Textbox(label="Input", value=examples[0], show_label=True)
|
|
|
35 |
btn = gr.Button("Check")
|
36 |
-
examples
|
37 |
with gr.Column():
|
38 |
output1 = gr.Label(label=models[1])
|
39 |
output2 = gr.Label(label=models[2])
|
|
|
40 |
btn.click(fn, inputs=[input], outputs=[output0, output1, output2])
|
41 |
|
42 |
if __name__ == "__main__":
|
|
|
32 |
with gr.Column():
|
33 |
output0 = gr.Label(label=models[0])
|
34 |
input = gr.Textbox(label="Input", value=examples[0], show_label=True)
|
35 |
+
gr.Examples(examples, fn=fn, inputs=[input], outputs=[output0, output1, output2], cache_examples=True, batch=True)
|
36 |
btn = gr.Button("Check")
|
|
|
37 |
with gr.Column():
|
38 |
output1 = gr.Label(label=models[1])
|
39 |
output2 = gr.Label(label=models[2])
|
40 |
+
|
41 |
btn.click(fn, inputs=[input], outputs=[output0, output1, output2])
|
42 |
|
43 |
if __name__ == "__main__":
|