Spaces:
Runtime error
Runtime error
Commit
·
f5b0740
1
Parent(s):
482cb2b
Update app.py
Browse files
app.py
CHANGED
@@ -33,12 +33,6 @@ zip_path = "Images.zip"
|
|
33 |
# Open the zip folder
|
34 |
zip_file = zipfile.ZipFile(zip_path)
|
35 |
|
36 |
-
# Iterate over the images in the zip folder and display them using Streamlit
|
37 |
-
for image_name in zip_file.namelist():
|
38 |
-
image_data = zip_file.read(image_name)
|
39 |
-
image = Image.open(io.BytesIO(image_data))
|
40 |
-
st.image(image, caption=image_name)
|
41 |
-
|
42 |
vectors = np.load("./sbert_text_features.npy")
|
43 |
vector_dimension = vectors.shape[1]
|
44 |
index = faiss.IndexFlatL2(vector_dimension)
|
|
|
33 |
# Open the zip folder
|
34 |
zip_file = zipfile.ZipFile(zip_path)
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
vectors = np.load("./sbert_text_features.npy")
|
37 |
vector_dimension = vectors.shape[1]
|
38 |
index = faiss.IndexFlatL2(vector_dimension)
|