Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files
app/services/ml_service.py
CHANGED
|
@@ -7,8 +7,8 @@ from typing import List, Dict, Any, Optional
|
|
| 7 |
from huggingface_hub import hf_hub_download
|
| 8 |
|
| 9 |
# Only set HF cache for local development
|
| 10 |
-
if not os.getenv("RENDER") and not os.getenv("SPACE_ID"):
|
| 11 |
-
|
| 12 |
|
| 13 |
class MLPredictionService:
|
| 14 |
"""
|
|
|
|
| 7 |
from huggingface_hub import hf_hub_download
|
| 8 |
|
| 9 |
# Only set HF cache for local development
|
| 10 |
+
# if not os.getenv("RENDER") and not os.getenv("SPACE_ID"):
|
| 11 |
+
# os.environ['HF_HOME'] = 'G:/huggingface_cache'
|
| 12 |
|
| 13 |
class MLPredictionService:
|
| 14 |
"""
|