diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2024-01-01 14:25:30 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2024-01-01 14:25:30 +0000 |
commit | 5d7d1823afab0a051a3fbbdb3213bae8051350b7 (patch) | |
tree | 1c718b1a935fe5c2cc7861e647960f12aecff124 /modules/ui_extra_networks_user_metadata.py | |
parent | 1ffdedc11d49862cf0d030fb0bcc25eb0449939b (diff) | |
download | stable-diffusion-webui-gfx803-5d7d1823afab0a051a3fbbdb3213bae8051350b7.tar.gz stable-diffusion-webui-gfx803-5d7d1823afab0a051a3fbbdb3213bae8051350b7.tar.bz2 stable-diffusion-webui-gfx803-5d7d1823afab0a051a3fbbdb3213bae8051350b7.zip |
rename infotext.py again, this time to infotext_utils.py; I didn't realize infotext would be used for variable names in multiple places, which makes it awkward to import the module; also fix the bug I caused by this rename that breaks tests
Diffstat (limited to 'modules/ui_extra_networks_user_metadata.py')
-rw-r--r-- | modules/ui_extra_networks_user_metadata.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/ui_extra_networks_user_metadata.py b/modules/ui_extra_networks_user_metadata.py index 87aeb6f3..989a649b 100644 --- a/modules/ui_extra_networks_user_metadata.py +++ b/modules/ui_extra_networks_user_metadata.py @@ -5,7 +5,7 @@ import os.path import gradio as gr
-from modules import infotext, images, sysinfo, errors, ui_extra_networks
+from modules import infotext_utils, images, sysinfo, errors, ui_extra_networks
class UserMetadataEditor:
@@ -181,7 +181,7 @@ class UserMetadataEditor: index = len(gallery) - 1 if index >= len(gallery) else index
img_info = gallery[index if index >= 0 else 0]
- image = infotext.image_from_url_text(img_info)
+ image = infotext_utils.image_from_url_text(img_info)
geninfo, items = images.read_info_from_image(image)
images.save_image_with_geninfo(image, geninfo, item["local_preview"])
|