Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ analyzer = pipeline(
|
|
21 |
|
22 |
def predict_sentiment(x):
|
23 |
print(analyzer(x))
|
24 |
-
return
|
25 |
|
26 |
|
27 |
interface = gr.Interface(
|
|
|
21 |
|
22 |
def predict_sentiment(x):
|
23 |
print(analyzer(x))
|
24 |
+
return analyzer(x)[0]["label"]
|
25 |
|
26 |
|
27 |
interface = gr.Interface(
|