Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -170,4 +170,13 @@ async def run_hackrx(req: RunRequest):
|
|
| 170 |
print("🔥 app.py loaded5")
|
| 171 |
@app.get("/", include_in_schema=False)
|
| 172 |
def root():
|
| 173 |
-
return {"message": "API is running. Go to /docs for documentation."}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 170 |
print("🔥 app.py loaded5")
|
| 171 |
@app.get("/", include_in_schema=False)
|
| 172 |
def root():
|
| 173 |
+
return {"message": "API is running. Go to /docs for documentation."}
|
| 174 |
+
|
| 175 |
+
|
| 176 |
+
# Gradio dummy interface (can be replaced with a real UI later)
|
| 177 |
+
with gr.Blocks() as demo:
|
| 178 |
+
gr.Markdown("# HackRX RAG Server")
|
| 179 |
+
gr.Markdown("Backend is running successfully 🚀")
|
| 180 |
+
|
| 181 |
+
# Mount Gradio app into FastAPI (Hugging Face Spaces needs this)
|
| 182 |
+
app = gr.mount_gradio_app(app, demo, path="/")
|