Sukhimam commited on
Commit
b6a5ba7
·
verified ·
1 Parent(s): 10bedc2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -10
app.py CHANGED
@@ -1,11 +1,2 @@
1
- import gradio as gr
2
- from transformers import pipeline
3
-
4
- def analyze_sentiment(text):
5
- classifier = pipeline("sentiment-analysis")
6
- return classifier(text)
7
-
8
- demo = gr.Interface(fn=analyze_sentiment, inputs="text", outputs="text")
9
- demo.launch()
10
-
11
 
 
1
+ pip install transformers
 
 
 
 
 
 
 
 
 
2