diff --git a/modules/ui_gradio_extensions.py b/modules/ui_gradio_extensions.py index ed32a87a..00214364 100644 --- a/modules/ui_gradio_extensions.py +++ b/modules/ui_gradio_extensions.py @@ -30,7 +30,7 @@ def javascript_html(): edit_attention_js_path = webpath('javascript/edit-attention.js') viewer_js_path = webpath('javascript/viewer.js') image_viewer_js_path = webpath('javascript/imageviewer.js') - samples_path = webpath('sdxl_styles/samples/Fooocus V2.jpg') + samples_path = webpath(os.path.abspath('./sdxl_styles/samples/Fooocus V2.jpg')) head = f'\n' head += f'\n' head += f'\n'