mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
fix allowed paths
This commit is contained in:
@@ -59,3 +59,5 @@ Tech that can be integrated as part of the core workflow...
|
||||
- port `p.all_hr_prompts`
|
||||
- test `lyco_patch_lora`
|
||||
- fix `lyco` logging
|
||||
- save `ui-settings.json`
|
||||
- `data-dir` security issues
|
||||
|
||||
@@ -256,8 +256,11 @@ def start_ui():
|
||||
max_threads=64,
|
||||
show_api=True,
|
||||
favicon_path='html/logo.ico',
|
||||
allowed_paths=[os.path.dirname(__file__), cmd_opts.data_dir],
|
||||
app_kwargs=gradio_kwargs,
|
||||
)
|
||||
if cmd_opts.data_dir is not None:
|
||||
ui_tempdir.register_tmp_file(shared.demo, os.path.join(cmd_opts.data_dir, 'x'))
|
||||
shared.log.info(f'Local URL: {local_url}')
|
||||
if cmd_opts.docs:
|
||||
shared.log.info(f'API Docs: {local_url[:-1]}/docs') # {local_url[:-1]}?view=api
|
||||
|
||||
Reference in New Issue
Block a user