KiWA001 commited on
Commit
c5ad40f
·
1 Parent(s): b3ece15

chore: force cache bust and add version header

Browse files
Files changed (3) hide show
  1. debug_minimal.py +21 -0
  2. main.py +1 -1
  3. requirements.txt +2 -0
debug_minimal.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Minimal Debug App
2
+ import os
3
+ import sys
4
+ from fastapi import FastAPI
5
+ import uvicorn
6
+
7
+ print("🔥 MINIMAL DEBUG APP STARTING 🔥", file=sys.stderr)
8
+
9
+ app = FastAPI()
10
+
11
+ @app.get("/")
12
+ def root():
13
+ return {"status": "ok", "message": "Minimal debug app is running"}
14
+
15
+ @app.get("/health")
16
+ def health():
17
+ return {"status": "healthy"}
18
+
19
+ if __name__ == "__main__":
20
+ port = int(os.environ.get("PORT", 7860))
21
+ uvicorn.run(app, host="0.0.0.0", port=port)
main.py CHANGED
@@ -277,7 +277,7 @@ async def deep_research_endpoint(request: Request):
277
  @app.get("/", tags=["Dashboard"])
278
  async def root():
279
  """Serve the HTML Dashboard."""
280
- return FileResponse("static/docs.html")
281
 
282
 
283
  @app.get(
 
277
  @app.get("/", tags=["Dashboard"])
278
  async def root():
279
  """Serve the HTML Dashboard."""
280
+ return FileResponse("static/docs.html", headers={"X-API-Version": "2.0.1-NewAuth"})
281
 
282
 
283
  @app.get(
requirements.txt CHANGED
@@ -10,3 +10,5 @@ requests>=2.31.0
10
  beautifulsoup4>=4.12.0
11
  lxml>=5.1.0
12
  duckduckgo_search>=5.0.0
 
 
 
10
  beautifulsoup4>=4.12.0
11
  lxml>=5.1.0
12
  duckduckgo_search>=5.0.0
13
+
14
+ # Force Rebuild: v2.0.1