Update app.py
Browse files17 unmodified lines1819202122232425262728293031323334112 unmodified lines14714814913915017 unmodified linesdeps = build_dependencies()handlers = UIHandlers(deps)
# Diagnostic: Check Supabase connectionprint("DEBUG: Checking DB connection from app.py...")try: if hasattr(deps.analysis_service._cache, "_table"): count = deps.analysis_service._cache._table.select("*", count="exact", head=True).execute().count print(f"DEBUG: Successfully connected to Supabase. Table 'analysis_results' has {count} rows.") else: print("DEBUG: Using local file cache (not Supabase). Check configuration.")except Exception as e: print(f"DEBUG: Failed to query Supabase: {e}")
def _build_app(): return build_demo(deps, handlers)112 unmodified lines
if __name__ == "__main__": demo.launch(debug=True) demo.launch(allowed_paths=[os.environ.get("VOCHI_ALLOWED_PATH", "D:\\tmp")])app.py+12-1