Spaces:
Runtime error
Runtime error
Force tag creation
Browse files
app.py
CHANGED
|
@@ -86,6 +86,10 @@ def main():
|
|
| 86 |
st.json(metadata)
|
| 87 |
|
| 88 |
st.markdown("## 2. Edit the data")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
|
| 90 |
############################
|
| 91 |
# LANGUAGES
|
|
@@ -325,7 +329,7 @@ def main():
|
|
| 325 |
)
|
| 326 |
st.markdown("For mor info on the metadata schema please refer to "
|
| 327 |
"https://raw.githubusercontent.com/huggingface/hub-docs/main/modelcard.md")
|
| 328 |
-
|
| 329 |
new_yaml = yaml.dump(metadata, sort_keys=False, line_break="\n")
|
| 330 |
st.markdown(f"```yaml\n---\n{new_yaml}---\n```")
|
| 331 |
|
|
|
|
| 86 |
st.json(metadata)
|
| 87 |
|
| 88 |
st.markdown("## 2. Edit the data")
|
| 89 |
+
|
| 90 |
+
if "tags" not in metadata:
|
| 91 |
+
metadata["tags"] = []
|
| 92 |
+
metadata["tags"].append("hf-asr-leaderboard")
|
| 93 |
|
| 94 |
############################
|
| 95 |
# LANGUAGES
|
|
|
|
| 329 |
)
|
| 330 |
st.markdown("For mor info on the metadata schema please refer to "
|
| 331 |
"https://raw.githubusercontent.com/huggingface/hub-docs/main/modelcard.md")
|
| 332 |
+
|
| 333 |
new_yaml = yaml.dump(metadata, sort_keys=False, line_break="\n")
|
| 334 |
st.markdown(f"```yaml\n---\n{new_yaml}---\n```")
|
| 335 |
|