diff --git a/web-app/templates/result.html b/web-app/templates/result.html index 898c2468..2ce69fac 100644 --- a/web-app/templates/result.html +++ b/web-app/templates/result.html @@ -1,34 +1,52 @@ + -

Emotion Results

- - - - - +
+

Emotion Results

+ + {% for result in results %} -
- - - - {% endfor %} -
NameEmotion Message
{{ result.name }}{{ result.emotion }}
- + {% if result.emotion is string and result.emotion.startswith('ERROR') %} + + + {% elif result.emotion is mapping %} + + + + + + + + + + {% for emotion, score in result.emotion.items() %} + + + + + {% endfor %} + +
EmotionScore (%)
{{ emotion }}{{ score | round(2) }}
+ {% else %} + + + {% endif %} + {% endfor %} + + + + + - \ No newline at end of file +