Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -99,7 +99,7 @@ def update_pickle_for_new_user(new_encodings, new_names, pkl_path="encodings.pkl
|
|
| 99 |
return encodings, names
|
| 100 |
|
| 101 |
def load_encodings_from_supabase(pkl_path="encodings.pkl"):
|
| 102 |
-
"""Downloads the pickle file from Supabase and loads the
|
| 103 |
try:
|
| 104 |
download_pickle_from_supabase(pkl_path, STORAGE_BUCKET, STORAGE_PATH)
|
| 105 |
with open(pkl_path, 'rb') as f:
|
|
|
|
| 99 |
return encodings, names
|
| 100 |
|
| 101 |
def load_encodings_from_supabase(pkl_path="encodings.pkl"):
|
| 102 |
+
"""Downloads the pickle file from Supabase and loads the encoding."""
|
| 103 |
try:
|
| 104 |
download_pickle_from_supabase(pkl_path, STORAGE_BUCKET, STORAGE_PATH)
|
| 105 |
with open(pkl_path, 'rb') as f:
|