Spaces:
Runtime error
Runtime error
change
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ from transformers import pipeline
|
|
| 4 |
sentiment = pipeline('sentiment-analysis')
|
| 5 |
|
| 6 |
def get_sentiment(input_text):
|
| 7 |
-
return sentiment(input_text)
|
| 8 |
|
| 9 |
iface = gr.Interface(fn = get_sentiment,
|
| 10 |
inputs = "text",
|
|
|
|
| 4 |
sentiment = pipeline('sentiment-analysis')
|
| 5 |
|
| 6 |
def get_sentiment(input_text):
|
| 7 |
+
return sentiment(input_text)
|
| 8 |
|
| 9 |
iface = gr.Interface(fn = get_sentiment,
|
| 10 |
inputs = "text",
|