Update app.py
Browse files17 unmodified lines181920212223112 unmodified lines13613713813917 unmodified linesdeps = build_dependencies()handlers = UIHandlers(deps)def _build_app():return build_demo(deps, handlers)112 unmodified linesif __name__ == "__main__":demo.launch(debug=True)17 unmodified lines1819202122232425262728293031323334112 unmodified lines14714814915017 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().countprint(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 linesif __name__ == "__main__":demo.launch(allowed_paths=[os.environ.get("VOCHI_ALLOWED_PATH", "D:\\tmp")])
app.py+12-1