Update app.py
Browse files
app.py
CHANGED
|
@@ -143,7 +143,8 @@ def get_image_tensors_batch_cpu(images, image_processor, model, device='cpu'):
|
|
| 143 |
Keeps the same structure and behaviour as the original function.
|
| 144 |
"""
|
| 145 |
import torch
|
| 146 |
-
|
|
|
|
| 147 |
batch_size = len(images)
|
| 148 |
all_processed = []
|
| 149 |
|
|
|
|
| 143 |
Keeps the same structure and behaviour as the original function.
|
| 144 |
"""
|
| 145 |
import torch
|
| 146 |
+
from libra.mm_utils import process_images
|
| 147 |
+
|
| 148 |
batch_size = len(images)
|
| 149 |
all_processed = []
|
| 150 |
|