renaldidafa commited on
Commit
4fce682
·
verified ·
1 Parent(s): dff5c95
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -98,8 +98,8 @@ def predict_sentiment(text):
98
  # Membangun antarmuka Gradio
99
  iface = gr.Interface(
100
  fn=predict_sentiment,
101
- inputs=gr.inputs.Textbox(lines=5, placeholder="Enter your text here..."),
102
- outputs="text", # Change output to text to display error messages if any
103
  title="Sentiment Analysis of Amazon Products",
104
  description="Enter text to predict sentiment (positive/neutral/negative)",
105
  examples=[
 
98
  # Membangun antarmuka Gradio
99
  iface = gr.Interface(
100
  fn=predict_sentiment,
101
+ inputs=gr.Textbox(lines=5, placeholder="Enter your text here..."),
102
+ outputs=gr.Textbox(), # Change output to text to display error messages if any
103
  title="Sentiment Analysis of Amazon Products",
104
  description="Enter text to predict sentiment (positive/neutral/negative)",
105
  examples=[