konstantinG commited on
Commit
3e6bee3
1 Parent(s): 0a35212

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -6,6 +6,7 @@ from funcs.get_similarity import get_similarity_score, create_filelist, load_emb
6
  from funcs.fiass_similaruty import load_embeddings, encode_text, find_matches_fiass
7
  import torch.nn.functional as F
8
  import pandas as pd
 
9
  from unzip import unzip
10
 
11
  zip_filename = 'img.zip'
@@ -16,7 +17,7 @@ if not os.path.exists(target_dir):
16
  os.makedirs(target_dir)
17
 
18
  # Open the zip file and extract its contents to the target directory
19
- with zipfile.ZipFile(zip_filename, 'r') as zip_ref:
20
  zip_ref.extractall(target_dir)
21
 
22
  device = 'cpu'
 
6
  from funcs.fiass_similaruty import load_embeddings, encode_text, find_matches_fiass
7
  import torch.nn.functional as F
8
  import pandas as pd
9
+ import zipfile
10
  from unzip import unzip
11
 
12
  zip_filename = 'img.zip'
 
17
  os.makedirs(target_dir)
18
 
19
  # Open the zip file and extract its contents to the target directory
20
+ with ZipFile(zip_filename, 'r') as zip_ref:
21
  zip_ref.extractall(target_dir)
22
 
23
  device = 'cpu'