kumar989 commited on
Commit
caf7e32
·
1 Parent(s): dd0e634

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ sentiment_analysis = pipeline("sentiment-analysis",model="siebert/sentiment-robe
4
  # print(sentiment_analysis("I love this!"))
5
  def model(a):
6
  return sentiment_analysis(a)[0]
7
- demo = gr.Interface(fn=sentiment_analysis, inputs="text", outputs=gr.Label(num_top_classes=2))
8
  demo.launch()
9
  # import gradio as gr
10
 
 
4
  # print(sentiment_analysis("I love this!"))
5
  def model(a):
6
  return sentiment_analysis(a)[0]
7
+ demo = gr.Interface(fn=model, inputs="text", outputs=gr.Label(num_top_classes=2))
8
  demo.launch()
9
  # import gradio as gr
10