Spaces:
Runtime error
Runtime error
File size: 476 Bytes
029d2df 5bc3475 029d2df 5bc3475 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | with open("README.md", "r") as f:
lines = f.readlines()
new_lines = []
skip = True
for line in lines[1:]:
if line.strip() == "---":
skip = False
continue
if not skip:
new_lines.append(line)
new_frontmatter = """---
title: openagenticresearch
emoji: 🐳
colorFrom: purple
colorTo: red
sdk: docker
pinned: false
app_port: 7860
tags:
- deepsite
---
"""
with open("README.md", "w") as f:
f.write(new_frontmatter + "".join(new_lines))
|