Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -254,9 +254,9 @@ with gr.Blocks() as demo:
|
|
254 |
submit_btn.click(answer_question, inputs=[file_input, question_input], outputs=answer_output)
|
255 |
|
256 |
# ✅ Mount Gradio with FastAPI
|
257 |
-
app = gr.mount_gradio_app(app, demo, path="/
|
258 |
|
259 |
@app.get("/")
|
260 |
def home():
|
261 |
-
return RedirectResponse(url="/
|
262 |
|
|
|
254 |
submit_btn.click(answer_question, inputs=[file_input, question_input], outputs=answer_output)
|
255 |
|
256 |
# ✅ Mount Gradio with FastAPI
|
257 |
+
app = gr.mount_gradio_app(app, demo, path="/")
|
258 |
|
259 |
@app.get("/")
|
260 |
def home():
|
261 |
+
return RedirectResponse(url="/")
|
262 |
|