Margaret commited on
Commit
7a61b46
1 Parent(s): 17167c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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)