grimzaeye commited on
Commit
0a63990
·
verified ·
1 Parent(s): 46e166c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -1,7 +1,12 @@
1
  import gradio as gr
 
2
 
 
 
 
 
3
  def greet(name):
4
  return "Hello " + name + "!!"
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
  iface.launch()
 
1
  import gradio as gr
2
+ from transformers import pipeline
3
 
4
+ sentiment = pipeline('sentiment-analysis')
5
+
6
+ # def get_sentiment(input):
7
+ # response =
8
  def greet(name):
9
  return "Hello " + name + "!!"
10
 
11
+ iface = gr.Interface(fn=greet, title="Sentiment Analysis", inputs="text", outputs="text")
12
  iface.launch()