Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -88,7 +88,7 @@ def add_pdf_gradio(pdf_file_binary, progress=gr.Progress()):
|
|
88 |
image_md5 = get_image_md5(image)
|
89 |
image_md5s.append(image_md5)
|
90 |
with torch.no_grad():
|
91 |
-
reps = encode([image])
|
92 |
reps_list.append(reps)
|
93 |
images.append(image)
|
94 |
|
|
|
88 |
image_md5 = get_image_md5(image)
|
89 |
image_md5s.append(image_md5)
|
90 |
with torch.no_grad():
|
91 |
+
reps = encode([image]).squeeze(0)
|
92 |
reps_list.append(reps)
|
93 |
images.append(image)
|
94 |
|