Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -121,8 +121,8 @@ with gr.Blocks(theme="abidlabs/Lime") as demo:
|
|
121 |
|
122 |
text_submit = gr.Button()
|
123 |
text_output = gr.Textbox(label="Text Categorization Output")
|
124 |
-
text_submit.click(categorize, inputs=[text_input
|
125 |
-
text_examples = gr.Examples(examples = text_category_example, inputs = [text_input
|
126 |
|
127 |
|
128 |
with gr.Tab("NLI"):
|
|
|
121 |
|
122 |
text_submit = gr.Button()
|
123 |
text_output = gr.Textbox(label="Text Categorization Output")
|
124 |
+
text_submit.click(categorize, inputs=[text_input], outputs=text_output)
|
125 |
+
text_examples = gr.Examples(examples = text_category_example, inputs = [text_input], outputs=text_output, fn=categorize)
|
126 |
|
127 |
|
128 |
with gr.Tab("NLI"):
|