ikraamkb commited on
Commit
4b92f75
·
verified ·
1 Parent(s): 311ac6c

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +6 -1
main.py CHANGED
@@ -18,4 +18,9 @@ with gr.Blocks() as demo:
18
  img_output = gr.Textbox(label="Answer")
19
  img_input.change(answer_question_from_image, [img_input, img_question_input], img_output)
20
 
21
- demo.launch()
 
 
 
 
 
 
18
  img_output = gr.Textbox(label="Answer")
19
  img_input.change(answer_question_from_image, [img_input, img_question_input], img_output)
20
 
21
+ app = gr.mount_gradio_app(app, demo, path="/")
22
+
23
+ # Root redirect to Gradio app
24
+ @app.get("/")
25
+ def home():
26
+ return RedirectResponse(url="/")