kiptoozeff commited on
Commit
433ad7a
·
verified ·
1 Parent(s): 7c81dbd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ print("Model was loaded")
17
  classifier = pipeline("text-classification", model=model, tokenizer=tokenizer, device=is_gpu-1)
18
  emotions = {'LABEL_0': 'sadness', 'LABEL_1': 'joy', 'LABEL_2': 'love', 'LABEL_3': 'anger', 'LABEL_4': 'fear',
19
  'LABEL_5': 'surprise'}
20
- examples = ["I love you!", "I hate you!"]
21
 
22
 
23
  def predict(twitter):
 
17
  classifier = pipeline("text-classification", model=model, tokenizer=tokenizer, device=is_gpu-1)
18
  emotions = {'LABEL_0': 'sadness', 'LABEL_1': 'joy', 'LABEL_2': 'love', 'LABEL_3': 'anger', 'LABEL_4': 'fear',
19
  'LABEL_5': 'surprise'}
20
+ examples = ["I am a happy man", "I hate you!"]
21
 
22
 
23
  def predict(twitter):