Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ def predict(image):
|
|
| 12 |
|
| 13 |
|
| 14 |
def sentiment_analysis(shortened):
|
| 15 |
-
pipe = pipeline('
|
| 16 |
senti = pipe(shortened)
|
| 17 |
return senti
|
| 18 |
|
|
|
|
| 12 |
|
| 13 |
|
| 14 |
def sentiment_analysis(shortened):
|
| 15 |
+
pipe = pipeline('sentiment-analysis')
|
| 16 |
senti = pipe(shortened)
|
| 17 |
return senti
|
| 18 |
|