Spaces:
Running
Running
Update main.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
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="/")
|