Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,5 +6,12 @@ pipe = pipeline("sentiment-analysis")
|
|
| 6 |
def get_sentiment(input):
|
| 7 |
return pipe(input)
|
| 8 |
|
| 9 |
-
demo = gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
demo.launch()
|
|
|
|
| 6 |
def get_sentiment(input):
|
| 7 |
return pipe(input)
|
| 8 |
|
| 9 |
+
demo = gr.Interface(
|
| 10 |
+
fn=get_sentiment,
|
| 11 |
+
inputs="text",
|
| 12 |
+
outputs=["text"],
|
| 13 |
+
title="Sentiment Analysis",
|
| 14 |
+
description="Get a sentimental analysis for the provided text"
|
| 15 |
+
)
|
| 16 |
+
|
| 17 |
demo.launch()
|