Spaces:
Running
Running
Download main.py from u5ername/markdown2ppt-docker: direct link, hf CLI and curl.
- Browser
- Download file 712 Bytes
-
https://huggingface.co/spaces/u5ername/markdown2ppt-docker/resolve/main/main.py
- Command line
-
hf download hf://spaces/u5ername/markdown2ppt-docker/main.py
-
curl -L -o main.py https://huggingface.co/spaces/u5ername/markdown2ppt-docker/resolve/main/main.py
712 Bytes
| """Single Hugging Face Spaces entry point for the multipage Gradio app.""" | |
| import gradio as gr | |
| from pages.converter import build_converter_page | |
| from pages.live_editor import build_live_editor_page | |
| from pages.template_tool import build_template_page | |
| from ui.theme import APP_CSS, studio_theme | |
| with gr.Blocks(title="md / ppt") as iface: | |
| build_converter_page() | |
| with iface.route("PowerPoint 模板工具", "/template", show_in_navbar=False): | |
| build_template_page() | |
| with iface.route("即時 Markdown 編輯", "/live", show_in_navbar=False): | |
| build_live_editor_page() | |
| if __name__ == "__main__": | |
| iface.launch( | |
| theme=studio_theme, | |
| css=APP_CSS, | |
| allowed_paths=["/tmp"], | |
| ) | |