v1
Browse files
app.py
CHANGED
|
@@ -81,7 +81,7 @@ def bot_streaming(message, history, link, temperature, new_max_token, top_p):
|
|
| 81 |
image_token_number = None
|
| 82 |
if len(message['files']) != 0:
|
| 83 |
# Image Load
|
| 84 |
-
image = pil_to_tensor(Image.open(message['files'][0]).convert("RGB"))
|
| 85 |
if "3.8B" not in link:
|
| 86 |
image_token_number = 1225
|
| 87 |
image = F.interpolate(image.unsqueeze(0), size=(490, 490), mode='bicubic').squeeze(0)
|
|
|
|
| 81 |
image_token_number = None
|
| 82 |
if len(message['files']) != 0:
|
| 83 |
# Image Load
|
| 84 |
+
image = pil_to_tensor(Image.open(message['files'][0]).convert("RGB"))
|
| 85 |
if "3.8B" not in link:
|
| 86 |
image_token_number = 1225
|
| 87 |
image = F.interpolate(image.unsqueeze(0), size=(490, 490), mode='bicubic').squeeze(0)
|