Spaces:
Runtime error
Runtime error
Omar Sanseviero
commited on
Commit
·
b29819d
1
Parent(s):
3ce4389
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ from huggingface_hub import hf_hub_download
|
|
| 7 |
|
| 8 |
|
| 9 |
file_path = hf_hub_download("osanseviero/wine-quality", "sklearn_model.joblib", use_auth_token=os.environ['TOKEN'])
|
| 10 |
-
model = joblib(
|
| 11 |
|
| 12 |
def predict(data):
|
| 13 |
return model.predict(data.to_numpy())
|
|
|
|
| 7 |
|
| 8 |
|
| 9 |
file_path = hf_hub_download("osanseviero/wine-quality", "sklearn_model.joblib", use_auth_token=os.environ['TOKEN'])
|
| 10 |
+
model = joblib(file_path)
|
| 11 |
|
| 12 |
def predict(data):
|
| 13 |
return model.predict(data.to_numpy())
|