Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ sentiment_analysis = pipeline("sentiment-analysis",model="siebert/sentiment-robe
|
|
4 |
# print(sentiment_analysis("I love this!"))
|
5 |
def model(a):
|
6 |
return sentiment_analysis(a)[0]
|
7 |
-
demo = gr.Interface(fn=
|
8 |
demo.launch()
|
9 |
# import gradio as gr
|
10 |
|
|
|
4 |
# print(sentiment_analysis("I love this!"))
|
5 |
def model(a):
|
6 |
return sentiment_analysis(a)[0]
|
7 |
+
demo = gr.Interface(fn=model, inputs="text", outputs=gr.Label(num_top_classes=2))
|
8 |
demo.launch()
|
9 |
# import gradio as gr
|
10 |
|