Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -10,18 +10,6 @@ import joblib
|
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
-
model_path = hf_hub_download(
|
| 14 |
-
repo_id="affanthinks/superspace",
|
| 15 |
-
filename="backend_files_SK/model_compressed.joblib", # include directory
|
| 16 |
-
revision="main", # ensures correct branc # authentication
|
| 17 |
-
)
|
| 18 |
-
|
| 19 |
-
model = joblib.load(model_path)
|
| 20 |
-
print("✅ Model loaded successfully from", model_path)
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
# Initialize app
|
| 26 |
app = Flask("predict_revenue")
|
| 27 |
|
|
|
|
| 10 |
|
| 11 |
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
# Initialize app
|
| 14 |
app = Flask("predict_revenue")
|
| 15 |
|