ajeetkumar01 commited on
Commit
c2c1ecd
·
verified ·
1 Parent(s): cc4569b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -15,10 +15,12 @@ def predict_sentiment(text):
15
  sentiment = "Positive" if probabilities[0][1] > 0.5 else "Negative"
16
  return sentiment
17
 
 
18
  # Create Gradio interface
19
  text_input = gr.Textbox(lines=7, label="Input Text", placeholder="Enter your text here...")
20
  output_text = gr.Textbox(label="Predicted Sentiment")
21
 
 
22
  # Author information
23
  author = "Ajeetkumar Ukande"
24
 
 
15
  sentiment = "Positive" if probabilities[0][1] > 0.5 else "Negative"
16
  return sentiment
17
 
18
+
19
  # Create Gradio interface
20
  text_input = gr.Textbox(lines=7, label="Input Text", placeholder="Enter your text here...")
21
  output_text = gr.Textbox(label="Predicted Sentiment")
22
 
23
+
24
  # Author information
25
  author = "Ajeetkumar Ukande"
26