ikraamkb commited on
Commit
f404b85
·
verified ·
1 Parent(s): 93ae425

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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="/demo")
106
 
107
  @app.get("/")
108
  def home():
109
- return RedirectResponse(url="/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="/")