AI-Generated Feedback
{% if submission.content_type == 'speaking' and submission.parsed_content.get('scores') %}
{% for key, score in submission.parsed_content.scores.items() %}
{% if key != 'overall' %}
{% if key == 'pronunciation' %}
{% elif key == 'fluency' %}
{% elif key == 'vocabulary' %}
{% elif key == 'grammar' %}
{% else %}
{% endif %}
{{ key }}
{% endif %}
{% endfor %}
{% if submission.parsed_content.scores.get('overall') %}
Overall Score
{{ submission.parsed_content.scores.overall }}
%
{% endif %}
{% endif %}
{% if submission.parsed_feedback %}
{% if submission.content_type == 'comprehension' %}
{% for entry in submission.parsed_feedback %}
AI Feedback:
{% if entry.suggestions %}
Suggestions:
{% endif %}
{% endfor %}
{% elif submission.content_type == 'speaking' %}
{% if submission.parsed_content.get('feedback') %}
{% for key, feedback in submission.parsed_content.feedback.items() %}
{% endfor %}
{% else %}
No detailed AI feedback available for this submission.
{% endif %}
{% else %}
{{ submission.feedback }}
{% endif %}
{% else %}
No AI feedback available for this submission.
{% endif %}