Skip to content

Commit b46c64c

Browse files
sphuffAUTOMATIC1111
authored andcommitted
clean
1 parent db9ab1a commit b46c64c

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

modules/api/api.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ def __base64_to_image(self, base64_string):
4242
# convert base64 to PIL image
4343
return Image.open(io.BytesIO(imgdata))
4444

45-
def __processed_info_to_json(self, processed):
46-
return json.dumps(processed.info)
47-
4845
def text2imgapi(self, txt2imgreq: StableDiffusionTxt2ImgProcessingAPI):
4946
sampler_index = sampler_to_index(txt2imgreq.sampler_index)
5047

@@ -116,7 +113,6 @@ def img2imgapi(self, img2imgreq: StableDiffusionImg2ImgProcessingAPI):
116113
b64images.append(base64.b64encode(buffer.getvalue()))
117114

118115
if (not img2imgreq.include_init_images):
119-
# remove img2imgreq.init_images and img2imgreq.mask
120116
img2imgreq.init_images = None
121117
img2imgreq.mask = None
122118

modules/api/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def merge_class_params(class_):
6969
field=underscore(k),
7070
field_alias=k,
7171
field_type=field_type_generator(k, v),
72-
field_value=v.default,
72+
field_value=v.default
7373
)
7474
for (k,v) in self._class_data.items() if k not in API_NOT_ALLOWED
7575
]

0 commit comments

Comments
 (0)