Spaces:
Runtime error
Runtime error
Sebastian Gehrmann
commited on
Commit
•
77a3b13
1
Parent(s):
8a3a160
fix double render issue
Browse files
formatting/format_as_md.py
CHANGED
@@ -60,9 +60,9 @@ def construct_md(data_card_data: dict, text_by_key: dict):
|
|
60 |
# Special parsing options here.
|
61 |
if question_key == question_key == "paper-bibtext":
|
62 |
data_card_md_string += f"```\n{reply}\n``` \n\n"
|
63 |
-
|
64 |
data_card_md_string += f"```json\n{reply}\n``` \n\n"
|
65 |
-
|
66 |
data_card_md_string += f"{' '.join(reply)} \n\n"
|
67 |
else:
|
68 |
data_card_md_string += f"{reply} \n\n"
|
|
|
60 |
# Special parsing options here.
|
61 |
if question_key == question_key == "paper-bibtext":
|
62 |
data_card_md_string += f"```\n{reply}\n``` \n\n"
|
63 |
+
elif question_key == "structure-example":
|
64 |
data_card_md_string += f"```json\n{reply}\n``` \n\n"
|
65 |
+
elif isinstance(reply, list):
|
66 |
data_card_md_string += f"{' '.join(reply)} \n\n"
|
67 |
else:
|
68 |
data_card_md_string += f"{reply} \n\n"
|