Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,5 +7,5 @@ sentiment = pipeline("sentiment-analysis")
|
|
7 |
def get_sentiment(input_text):
|
8 |
return sentiment(input_text)
|
9 |
|
10 |
-
|
11 |
-
|
|
|
7 |
def get_sentiment(input_text):
|
8 |
return sentiment(input_text)
|
9 |
|
10 |
+
iface = gr.Interface(fn = get_sentiment, inputs = "text", outputs = ['text'], title ='Sentiment Analysis', description="Get Sentiment Negative/Positive for the given input")
|
11 |
+
iface.launch()
|