doublelotus commited on
Commit
5722466
·
1 Parent(s): c37dc7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,10 +1,10 @@
1
  import gradio as gr
2
-
3
  from transformers import pipeline
4
- def pipe = pipeline("sentiment-analysis")
 
5
 
6
  def predict(text):
7
- return pipe(text)[0]
8
 
9
  demo gr.Interface(
10
  fn=predict,
 
1
  import gradio as gr
 
2
  from transformers import pipeline
3
+
4
+ pipeline = pipeline("sentiment-analysis")
5
 
6
  def predict(text):
7
+ return pipeline(text)
8
 
9
  demo gr.Interface(
10
  fn=predict,