Spaces:
Running
Running
Download api/app.py from modelscope/modelscope-studio: direct link, hf CLI and curl.
- Browser
- Download file 370 Bytes
-
https://huggingface.co/spaces/modelscope/modelscope-studio/resolve/afb453a4cbbfd672cedb39efb522c31c69f8defd/api/app.py
- Command line
-
hf download hf://spaces/modelscope/modelscope-studio@afb453a4cbbfd672cedb39efb522c31c69f8defd/api/app.py
-
curl -L -o app.py https://huggingface.co/spaces/modelscope/modelscope-studio/resolve/afb453a4cbbfd672cedb39efb522c31c69f8defd/api/app.py
370 Bytes
| import os | |
| from components.legacy.Docs import Docs | |
| def resolve(relative_path: str): | |
| return os.path.join(os.path.dirname(__file__), relative_path) | |
| docs = Docs( | |
| __file__, | |
| markdown_files=([ | |
| filename for filename in os.listdir(resolve('.')) | |
| if filename.endswith(".md") | |
| ]), | |
| ) | |
| if __name__ == "__main__": | |
| docs.render().queue().launch() | |