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