Alexvatti commited on
Commit
9cb81e0
·
verified ·
1 Parent(s): ebfb422

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -57,15 +57,15 @@ def fn(test_review):
57
  return "Positive" if prediction[0] > 0.5 else "Negative"
58
 
59
  # Gradio Interface
60
- 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 truly reflects your emotions."
61
- input_text = gr.Textbox(label="Enter Text")
62
  output_text = gr.Textbox(label="Output Text")
63
 
64
  app = gr.Interface(
65
  fn=fn,
66
  inputs=input_text,
67
  outputs=output_text,
68
- title="Sentiment Analysis of Movie Reviews",
69
  description=description,
70
  allow_flagging="auto",
71
  flagging_dir='flagging_records'
 
57
  return "Positive" if prediction[0] > 0.5 else "Negative"
58
 
59
  # Gradio Interface
60
+ description = "Give a review of a movie that you like (or hate, sarcasm ) and the model will let you know just how much your review truly reflects your emotions"
61
+ input_text = gr.Textbox(label="Enter Movie Review Text in English")
62
  output_text = gr.Textbox(label="Output Text")
63
 
64
  app = gr.Interface(
65
  fn=fn,
66
  inputs=input_text,
67
  outputs=output_text,
68
+ title="Sentiment Analysis of Movie Reviews in English",
69
  description=description,
70
  allow_flagging="auto",
71
  flagging_dir='flagging_records'