Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -102,8 +102,8 @@ with gr.Blocks() as demo:
|
|
102 |
submit_btn.click(answer_question, inputs=[file_input, question_input], outputs=answer_output)
|
103 |
|
104 |
# ✅ Mount Gradio with FastAPI
|
105 |
-
app = gr.mount_gradio_app(app, demo, path="/
|
106 |
|
107 |
@app.get("/")
|
108 |
def home():
|
109 |
-
return RedirectResponse(url="/
|
|
|
102 |
submit_btn.click(answer_question, inputs=[file_input, question_input], outputs=answer_output)
|
103 |
|
104 |
# ✅ Mount Gradio with FastAPI
|
105 |
+
app = gr.mount_gradio_app(app, demo, path="/")
|
106 |
|
107 |
@app.get("/")
|
108 |
def home():
|
109 |
+
return RedirectResponse(url="/")
|