I2C-UHU commited on
Commit
f4a79fb
·
1 Parent(s): 95d1b16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ demo = gr.Interface(
12
  outputs='text',
13
  )"""
14
 
15
- classifier = pipeline("sentiment-analysis", model="michellejieli/emotion_text_classifier")
16
 
17
  def predict(text):
18
  return pipe(text)[0]["label"]
 
12
  outputs='text',
13
  )"""
14
 
15
+ pipe = pipeline("sentiment-analysis", model="michellejieli/emotion_text_classifier")
16
 
17
  def predict(text):
18
  return pipe(text)[0]["label"]