Spaces:
Running
on
Zero
Running
on
Zero
Update conversation.py
Browse files- conversation.py +5 -4
conversation.py
CHANGED
|
@@ -194,14 +194,14 @@ class Conversation:
|
|
| 194 |
image = resize_img(
|
| 195 |
images[i],
|
| 196 |
400,
|
| 197 |
-
|
| 198 |
)
|
| 199 |
img_b64_str = pil2base64(image)
|
| 200 |
W, H = image.size
|
| 201 |
img_str = f'<img src="data:image/png;base64,{img_b64_str}" alt="{alt_str}" style="width: {W}px; max-width:none; max-height:none"></img>'
|
| 202 |
-
img_str = (
|
| 203 |
-
|
| 204 |
-
)
|
| 205 |
img_str_list.append(img_str)
|
| 206 |
|
| 207 |
if msg["role"] == self.USER:
|
|
@@ -303,3 +303,4 @@ class Conversation:
|
|
| 303 |
|
| 304 |
return filename
|
| 305 |
|
|
|
|
|
|
| 194 |
image = resize_img(
|
| 195 |
images[i],
|
| 196 |
400,
|
| 197 |
+
200,
|
| 198 |
)
|
| 199 |
img_b64_str = pil2base64(image)
|
| 200 |
W, H = image.size
|
| 201 |
img_str = f'<img src="data:image/png;base64,{img_b64_str}" alt="{alt_str}" style="width: {W}px; max-width:none; max-height:none"></img>'
|
| 202 |
+
# img_str = (
|
| 203 |
+
# f'<img src="data:image/png;base64,{img_b64_str}" alt="{alt_str}" />'
|
| 204 |
+
# )
|
| 205 |
img_str_list.append(img_str)
|
| 206 |
|
| 207 |
if msg["role"] == self.USER:
|
|
|
|
| 303 |
|
| 304 |
return filename
|
| 305 |
|
| 306 |
+
|