Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ def process_image(image):
|
|
| 32 |
encoding = feature_extractor([image for _ in range(batch_size)], return_tensors="pt")
|
| 33 |
|
| 34 |
# create primers
|
| 35 |
-
samples = encoding.
|
| 36 |
n_px = feature_extractor.size
|
| 37 |
clusters = feature_extractor.clusters
|
| 38 |
n_px_crop = 16
|
|
|
|
| 32 |
encoding = feature_extractor([image for _ in range(batch_size)], return_tensors="pt")
|
| 33 |
|
| 34 |
# create primers
|
| 35 |
+
samples = encoding.input_ids.numpy()
|
| 36 |
n_px = feature_extractor.size
|
| 37 |
clusters = feature_extractor.clusters
|
| 38 |
n_px_crop = 16
|