Spaces:
Running
Running
Download components/Markdown/app.py from modelscope/modelscope-studio: direct link, hf CLI and curl.
- Browser
- Download file 433 Bytes
-
https://huggingface.co/spaces/modelscope/modelscope-studio/resolve/refs%2Fpr%2F1/components/Markdown/app.py
- Command line
-
hf download hf://spaces/modelscope/modelscope-studio@refs/pr/1/components/Markdown/app.py
-
curl -L -o app.py https://huggingface.co/spaces/modelscope/modelscope-studio/resolve/refs%2Fpr%2F1/components/Markdown/app.py
433 Bytes
| import os | |
| from components.Docs import Docs | |
| def resolve(relative_path: str): | |
| return os.path.join(os.path.dirname(__file__), relative_path) | |
| docs = Docs( | |
| __file__, | |
| markdown_files=(["README.md", "README-zh_CN.md"] + [ | |
| f"custom_tags/{filename}" | |
| for filename in os.listdir(resolve('custom_tags')) | |
| if filename.endswith(".md") | |
| ]), | |
| ) | |
| if __name__ == "__main__": | |
| docs.render().queue().launch() | |