Sambhavnoobcoder commited on
Commit
9811bd2
·
1 Parent(s): 1a2c81f
Files changed (1) hide show
  1. app.py +1 -1
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.Number(label="Number of words", default=3000, min_value=1, max_value=10000), gr.inputs.Number(label="Words per view", default=30, min_value=1, max_value=100)],
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"