deploy: update habadashi_login
Browse files317 unmodified lines3183193203213223233243253263273283293301 unmodified line33233333433533633733848 unmodified lines387388389382390391392393394395396397398317 unmodified lines # --------------------------------------------------------- ver20_app = ver20_blocks # theme/css を mount_gradio_app に渡すために ver20 の定数を取得 try: from app import CUSTOM_CSS as VER20_CSS except ImportError: VER20_CSS = None print(f"[PHASE] import_ver20_end success=true type={type(ver20_app)}") except Exception as e: print(f"[PHASE] import_ver20_end success=false")1 unmodified line print(f"[TRACEBACK]\n{traceback.format_exc()}")else: print(f"[PHASE] import_ver20_end success=false reason=bootstrap_failed") VER20_CSS = None
# --- Routes ---@app.get("/")48 unmodified lines# Ver20 App (protected)print("[PHASE] mount_app_start")if ver20_app: app = gr.mount_gradio_app(app, ver20_app, path="/app", auth_dependency=get_current_user) app = gr.mount_gradio_app( app, ver20_app, path="/app", auth_dependency=get_current_user, theme=gr.themes.Citrus(), css=VER20_CSS, ) print("[PHASE] mount_app_end path=/app protected=true ver20=true")else: # Fallback: simple placeholder if ver20 failed to loadapp.py+14-1