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