singhankur01 commited on
Commit
f1f5699
·
verified ·
1 Parent(s): dab3edc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -163,5 +163,6 @@ async def run_hackrx(req: RunRequest):
163
 
164
  return JSONResponse({"answers": answers}, status_code=200)
165
 
166
- # --- 6. Mount the FastAPI app using Gradio ---
167
- demo = gr.mount_gradio_app(app, gr.Blocks(), path="/")
 
 
163
 
164
  return JSONResponse({"answers": answers}, status_code=200)
165
 
166
+ @app.get("/", include_in_schema=False)
167
+ def root():
168
+ return {"message": "API is running. Go to /docs for documentation."}