zafirabdullah12 commited on
Commit
e8dcabc
·
verified ·
1 Parent(s): 906acb8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -50,10 +50,14 @@ def predict_sentiment(text):
50
  # Gradio Interface
51
  interface = gr.Interface(
52
  fn=predict_sentiment,
53
- inputs=gr.Textbox(lines=3, placeholder="Type your sentence here..."),
 
 
 
 
54
  outputs=gr.Textbox(label="Prediction"),
55
- title="Sentiment Analysis System",
56
- description="Outputs sentiment analysis along with model confidence.",
57
  examples=[
58
  ["I really love this product"],
59
  ["This is the worst experience ever"],
@@ -61,4 +65,4 @@ interface = gr.Interface(
61
  ]
62
  )
63
 
64
- interface.launch()
 
50
  # Gradio Interface
51
  interface = gr.Interface(
52
  fn=predict_sentiment,
53
+ inputs=gr.Textbox(
54
+ lines=4,
55
+ placeholder="Type your sentence here...",
56
+ label="Text"
57
+ ),
58
  outputs=gr.Textbox(label="Prediction"),
59
+ title="Sentiment Analysis Application",
60
+ description="Sentiment Analysis Classification using a LSTM DL Model.",
61
  examples=[
62
  ["I really love this product"],
63
  ["This is the worst experience ever"],
 
65
  ]
66
  )
67
 
68
+ interface.launch(debug=True)