Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -105,8 +105,8 @@ with gr.Blocks(theme="soft") as demo:
|
|
105 |
|
106 |
sentiment_submit = gr.Button()
|
107 |
sentiment_output = gr.Textbox(label="Sentiment Analysis Output")
|
108 |
-
sentiment_submit.click(
|
109 |
-
sentiment_examples = gr.Examples(examples = sentiment_example, inputs = [sentiment_input, sentiment_choice], outputs=sentiment_output, fn=
|
110 |
|
111 |
|
112 |
with gr.Tab("NLI"):
|
|
|
105 |
|
106 |
sentiment_submit = gr.Button()
|
107 |
sentiment_output = gr.Textbox(label="Sentiment Analysis Output")
|
108 |
+
sentiment_submit.click(sentiment_analysis, inputs=[sentiment_input, sentiment_choice], outputs=sentiment_output)
|
109 |
+
sentiment_examples = gr.Examples(examples = sentiment_example, inputs = [sentiment_input, sentiment_choice], outputs=sentiment_output, fn=sentiment_analysis)
|
110 |
|
111 |
|
112 |
with gr.Tab("NLI"):
|