Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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):
|