muneebashraf
commited on
Commit
•
f4e307a
1
Parent(s):
1a37005
commit
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def generate_caption_and_analyze_emotions(image):
|
|
18 |
decoded_caption = caption_processor.decode(caption[0], skip_special_tokens=True)
|
19 |
|
20 |
# Load the emotion analysis model and tokenizer
|
21 |
-
emotion_model_name = "
|
22 |
emotion_classifier = pipeline(model=emotion_model_name)
|
23 |
|
24 |
results = emotion_classifier(decoded_caption)
|
|
|
18 |
decoded_caption = caption_processor.decode(caption[0], skip_special_tokens=True)
|
19 |
|
20 |
# Load the emotion analysis model and tokenizer
|
21 |
+
emotion_model_name = "SamLowe/roberta-base-go_emotions"
|
22 |
emotion_classifier = pipeline(model=emotion_model_name)
|
23 |
|
24 |
results = emotion_classifier(decoded_caption)
|