1one2two
feat: 新增即時 Markdown 編輯功能,更新 README 和測試範例
1bc6f72
Raw History Blame Contribute Delete
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"],
)