From 06c2ab045a963a0a180ac103a9900618627685f1 Mon Sep 17 00:00:00 2001 From: Marc-Andre Ferland Date: Wed, 26 Oct 2022 16:14:29 -0400 Subject: [PATCH] Fix TypeError: string indices must be integers --- ui/sd_internal/runtime.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/sd_internal/runtime.py b/ui/sd_internal/runtime.py index 972a6062..4c75b60a 100644 --- a/ui/sd_internal/runtime.py +++ b/ui/sd_internal/runtime.py @@ -622,8 +622,8 @@ def do_mk_img(req: Request): save_metadata(meta_out_path, req, prompts[0], opt_seed) if return_orig_img: - img_data = img_to_base64_str(img, req.output_format) - res_image_orig = ResponseImage(data=img_data, seed=opt_seed) + img_str = img_to_base64_str(img, req.output_format) + res_image_orig = ResponseImage(data=img_str, seed=opt_seed) res.images.append(res_image_orig) if req.save_to_disk_path is not None: