"""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"], )