Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
tollefj
/
siktsok
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
siktsok
/
prep.py
Tollef Jørgensen
v2
acc49a5
about 1 month ago
raw
Copy download link
history
blame
contribute
delete
Safe
170 Bytes
import
zipfile
index_file =
"faiss.index"
lookup_file =
"faiss.lookup.csv"
with
zipfile.ZipFile(
"files.zip"
,
"w"
)
as
z:
z.write(index_file)
z.write(lookup_file)