Commit
·
9811bd2
1
Parent(s):
1a2c81f
gptf2
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def predict_sentiment(user_input, number_of_words, words_per_view):
|
|
31 |
# Create the Gradio interface
|
32 |
iface = gr.Interface(
|
33 |
fn=predict_sentiment,
|
34 |
-
inputs=["textbox", gr.inputs.
|
35 |
outputs="text",
|
36 |
title="Sentiment Analysis",
|
37 |
description="Enter a text and get the sentiment prediction"
|
|
|
31 |
# Create the Gradio interface
|
32 |
iface = gr.Interface(
|
33 |
fn=predict_sentiment,
|
34 |
+
inputs=["textbox", gr.inputs.NumberRange(minimum=1, maximum=10000, default=3000, label="Number of words"), gr.inputs.NumberRange(minimum=1, maximum=100, default=30, label="Words per view")],
|
35 |
outputs="text",
|
36 |
title="Sentiment Analysis",
|
37 |
description="Enter a text and get the sentiment prediction"
|