singhankur01 commited on
Commit
7dcad90
·
verified ·
1 Parent(s): 52763d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -173,10 +173,5 @@ 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="/")
 
173
  return {"message": "API is running. Go to /docs for documentation."}
174
 
175
 
176
+ def dummy_gradio(): return "✅ API running!"
177
+ gr.Interface(fn=dummy_gradio, inputs=[], outputs="text").launch(server_name="0.0.0.0", server_port=7860)