Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
import gradio as gr
|
| 3 |
from transformers import pipeline
|
| 4 |
|
| 5 |
-
model = pipeline("sentiment-analysis", model="
|
| 6 |
|
| 7 |
def predict_sentiment(text):
|
| 8 |
if not text.strip():
|
|
|
|
| 2 |
import gradio as gr
|
| 3 |
from transformers import pipeline
|
| 4 |
|
| 5 |
+
model = pipeline("sentiment-analysis", model="kelompokjavonlp/sentiment_analysis")
|
| 6 |
|
| 7 |
def predict_sentiment(text):
|
| 8 |
if not text.strip():
|