Spaces:
Sleeping
Sleeping
ui update
Browse files
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.
|
102 |
-
outputs=
|
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=[
|