Guillaume Moutier Guillaume Moutier dolfim-ibm commited on
Commit
ccd16a2
·
unverified ·
1 Parent(s): 2acaa40

fix: Set root UI path when behind proxy (#38)

Browse files

Signed-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]>

Files changed (1) hide show
  1. 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, gradio_ui, path="/ui", allowed_paths=["./logo.png", tmp_output_dir]
 
 
 
 
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