Spaces:
Running
Running
Rendering markdown in 2nd tab!
Browse files
utils.py
CHANGED
@@ -64,7 +64,8 @@ def display_example_responses_html(evaluation_data, responses, models, example_i
|
|
64 |
responses_html = ""
|
65 |
for model in models:
|
66 |
response = responses[model].get(example_id, "(No response)")
|
67 |
-
|
|
|
68 |
|
69 |
html = f"""
|
70 |
<div style="display: flex; margin-bottom: 20px; align-items: flex-start;">
|
|
|
64 |
responses_html = ""
|
65 |
for model in models:
|
66 |
response = responses[model].get(example_id, "(No response)")
|
67 |
+
response_html = markdown.markdown(response, extensions=['fenced_code', 'codehilite'])
|
68 |
+
responses_html += f'<p style="margin: 0 0 8px;"><strong style="color: #495057;">{model}:</strong> {response_html}</p>'
|
69 |
|
70 |
html = f"""
|
71 |
<div style="display: flex; margin-bottom: 20px; align-items: flex-start;">
|