Spaces:
Running
Running
FoodDesert
commited on
Commit
•
cd4fb52
1
Parent(s):
a509ff9
Upload app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from joblib import load
|
|
5 |
import h5py
|
6 |
|
7 |
# Load the model and data once at startup
|
8 |
-
with h5py.File('
|
9 |
# Deserialize the vectorizer
|
10 |
vectorizer_bytes = f['vectorizer'][()].tobytes()
|
11 |
vectorizer_buffer = BytesIO(vectorizer_bytes)
|
|
|
5 |
import h5py
|
6 |
|
7 |
# Load the model and data once at startup
|
8 |
+
with h5py.File('artist_data.hdf5', 'r') as f:
|
9 |
# Deserialize the vectorizer
|
10 |
vectorizer_bytes = f['vectorizer'][()].tobytes()
|
11 |
vectorizer_buffer = BytesIO(vectorizer_bytes)
|