Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,5 @@
|
|
1 |
-
|
|
|
|
|
2 |
|
3 |
-
gr.Interface
|
|
|
1 |
+
from transformers import pipeline
|
2 |
+
sentiment_analysis = pipeline("sentiment-analysis",model="siebert/sentiment-roberta-large-english")
|
3 |
+
# print(sentiment_analysis("I love this!"))
|
4 |
|
5 |
+
demo = gr.Interface(fn=sentiment_analysis, inputs="text", outputs="text")
|