Spaces:
No application file
No application file
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,7 +56,7 @@ except Exception as e:
|
|
| 56 |
# Try to load Keras model from Hugging Face Hub
|
| 57 |
try:
|
| 58 |
keras_path = hf_hub_download(repo_id=model_repo, filename="best_model.keras", token=hf_token)
|
| 59 |
-
kmer_path = hf_hub_download(repo_id=model_repo, filename="kmer_to_index.pkl"
|
| 60 |
if os.path.exists(keras_path) and os.path.exists(kmer_path):
|
| 61 |
keras_model = load_model(keras_path)
|
| 62 |
with open(kmer_path, "rb") as f:
|
|
|
|
| 56 |
# Try to load Keras model from Hugging Face Hub
|
| 57 |
try:
|
| 58 |
keras_path = hf_hub_download(repo_id=model_repo, filename="best_model.keras", token=hf_token)
|
| 59 |
+
kmer_path = hf_hub_download(repo_id=model_repo, filename="kmer_to_index.pkl")
|
| 60 |
if os.path.exists(keras_path) and os.path.exists(kmer_path):
|
| 61 |
keras_model = load_model(keras_path)
|
| 62 |
with open(kmer_path, "rb") as f:
|