Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
d5ed425
1
Parent(s):
c39d6e0
Remove YAML header from README display in About tab for cleaner presentation
Browse files
app.py
CHANGED
@@ -640,7 +640,11 @@ def create_interface():
|
|
640 |
)
|
641 |
|
642 |
with gr.Tab("About"):
|
643 |
-
|
|
|
|
|
|
|
|
|
644 |
|
645 |
return demo
|
646 |
|
|
|
640 |
)
|
641 |
|
642 |
with gr.Tab("About"):
|
643 |
+
about_text = open("README.md", "r").read()
|
644 |
+
# Remove the yaml header
|
645 |
+
if about_text.startswith("---"):
|
646 |
+
about_text = about_text.split("---", 2)[2].strip()
|
647 |
+
gr.Markdown(value=about_text, label="About")
|
648 |
|
649 |
return demo
|
650 |
|