tcy6 commited on
Commit
ffd32f8
1 Parent(s): 5c2bfa7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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