Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
pipe = pipeline("sentiment-analysis", model="cardiffnlp/twitter-roberta-base-sentiment-latest")
|
|
@@ -11,5 +12,5 @@ iface = gr.Interface(fn = get_sentiment,
|
|
| 11 |
outputs = 'text',
|
| 12 |
title= 'Sentiment Analysis',
|
| 13 |
description = 'Get Sentiment Negative/Positive/Neutral for the given input')
|
| 14 |
-
|
| 15 |
-
iface.launch(inline = False)
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
|
| 3 |
from transformers import pipeline
|
| 4 |
|
| 5 |
pipe = pipeline("sentiment-analysis", model="cardiffnlp/twitter-roberta-base-sentiment-latest")
|
|
|
|
| 12 |
outputs = 'text',
|
| 13 |
title= 'Sentiment Analysis',
|
| 14 |
description = 'Get Sentiment Negative/Positive/Neutral for the given input')
|
| 15 |
+
|
| 16 |
+
iface.launch(inline = False)
|