Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -150,20 +150,20 @@ col_change = load(dst_path)
|
|
| 150 |
# quality change
|
| 151 |
src_path = hf_hub_download(
|
| 152 |
repo_id="WebashalarForML/Diamond_model_",
|
| 153 |
-
filename="CLASS_DUMMY/
|
| 154 |
cache_dir=MODEL_FOLDER
|
| 155 |
)
|
| 156 |
-
dst_path = os.path.join(MODEL_FOLDER, "
|
| 157 |
shutil.copy(src_path, dst_path)
|
| 158 |
qua_change = load(dst_path)
|
| 159 |
|
| 160 |
# cut change
|
| 161 |
src_path = hf_hub_download(
|
| 162 |
repo_id="WebashalarForML/Diamond_model_",
|
| 163 |
-
filename="CLASS_DUMMY/
|
| 164 |
cache_dir=MODEL_FOLDER
|
| 165 |
)
|
| 166 |
-
dst_path = os.path.join(MODEL_FOLDER, "
|
| 167 |
shutil.copy(src_path, dst_path)
|
| 168 |
cut_change = load(dst_path)
|
| 169 |
|
|
|
|
| 150 |
# quality change
|
| 151 |
src_path = hf_hub_download(
|
| 152 |
repo_id="WebashalarForML/Diamond_model_",
|
| 153 |
+
filename="CLASS_DUMMY/DT_best__2_class_qua_change.pkl",
|
| 154 |
cache_dir=MODEL_FOLDER
|
| 155 |
)
|
| 156 |
+
dst_path = os.path.join(MODEL_FOLDER, "DT_best__2_class_qua_change.pkl")
|
| 157 |
shutil.copy(src_path, dst_path)
|
| 158 |
qua_change = load(dst_path)
|
| 159 |
|
| 160 |
# cut change
|
| 161 |
src_path = hf_hub_download(
|
| 162 |
repo_id="WebashalarForML/Diamond_model_",
|
| 163 |
+
filename="CLASS_DUMMY/DT_best__2_class_cut_change.pkl",
|
| 164 |
cache_dir=MODEL_FOLDER
|
| 165 |
)
|
| 166 |
+
dst_path = os.path.join(MODEL_FOLDER, "DT_best__2_class_cut_change.pkl")
|
| 167 |
shutil.copy(src_path, dst_path)
|
| 168 |
cut_change = load(dst_path)
|
| 169 |
|