Alexvatti commited on
Commit
7a2c3d1
·
verified ·
1 Parent(s): dee9d31

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -79,9 +79,11 @@ def fn(test_review):
79
  return "Positive" if predictions==1 else "Negative"
80
 
81
  description = "Give a review of a movie that you like(or hate, sarcasm intended XD) and the model will let you know just how much your review truely reflects your emotions. "
 
 
82
  here = gr.Interface(fn,
83
- inputs= gradio.inputs.Textbox( lines=1, placeholder=None, default="", label=None),
84
- outputs='text',
85
  title="Sentiment analysis of movie reviews",
86
  description=description,
87
  theme="peach",
 
79
  return "Positive" if predictions==1 else "Negative"
80
 
81
  description = "Give a review of a movie that you like(or hate, sarcasm intended XD) and the model will let you know just how much your review truely reflects your emotions. "
82
+ input_text = gr.Textbox(label="Enter Text")
83
+ output_text = gr.Textbox(label="Output Text")
84
  here = gr.Interface(fn,
85
+ inputs= input_text,
86
+ outputs=output_text,
87
  title="Sentiment analysis of movie reviews",
88
  description=description,
89
  theme="peach",