Spaces:
Configuration error
Configuration error
fix: Set root UI path when behind proxy (#38)
Browse filesSigned-off-by: Guillaume Moutier <[email protected]>
Signed-off-by: Michele Dolfi <[email protected]>
Co-authored-by: Guillaume Moutier <[email protected]>
Co-authored-by: Michele Dolfi <[email protected]>
- docling_serve/app.py +5 -1
docling_serve/app.py
CHANGED
@@ -116,7 +116,11 @@ if WITH_UI:
|
|
116 |
tmp_output_dir = Path(tempfile.mkdtemp())
|
117 |
gradio_ui.gradio_output_dir = tmp_output_dir
|
118 |
app = gr.mount_gradio_app(
|
119 |
-
app,
|
|
|
|
|
|
|
|
|
120 |
)
|
121 |
|
122 |
|
|
|
116 |
tmp_output_dir = Path(tempfile.mkdtemp())
|
117 |
gradio_ui.gradio_output_dir = tmp_output_dir
|
118 |
app = gr.mount_gradio_app(
|
119 |
+
app,
|
120 |
+
gradio_ui,
|
121 |
+
path="/ui",
|
122 |
+
allowed_paths=["./logo.png", tmp_output_dir],
|
123 |
+
root_path="/ui",
|
124 |
)
|
125 |
|
126 |
|