deploy: update habadashi_login
Browse files317 unmodified lines3183193203213223231 unmodified line32532632732832933048 unmodified lines379380381382383384385317 unmodified lines# ---------------------------------------------------------ver20_app = ver20_blocksprint(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 lineprint(f"[TRACEBACK]\n{traceback.format_exc()}")else:print(f"[PHASE] import_ver20_end success=false reason=bootstrap_failed")# --- 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)print("[PHASE] mount_app_end path=/app protected=true ver20=true")else:# Fallback: simple placeholder if ver20 failed to load317 unmodified lines3183193203213223233243253263273283293301 unmodified line33233333433533633733848 unmodified lines387388389390391392393394395396397398317 unmodified lines# ---------------------------------------------------------ver20_app = ver20_blocks# theme/css を mount_gradio_app に渡すために ver20 の定数を取得try:from app import CUSTOM_CSS as VER20_CSSexcept ImportError:VER20_CSS = Noneprint(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 lineprint(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,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 load
app.py+14-1