aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui_extra_networks_user_metadata.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2024-01-01 14:25:30 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2024-01-01 14:25:30 +0000
commit5d7d1823afab0a051a3fbbdb3213bae8051350b7 (patch)
tree1c718b1a935fe5c2cc7861e647960f12aecff124 /modules/ui_extra_networks_user_metadata.py
parent1ffdedc11d49862cf0d030fb0bcc25eb0449939b (diff)
downloadstable-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.py4
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"])