Spaces:
Sleeping
Sleeping
device fixed
Browse files
app.py
CHANGED
|
@@ -191,7 +191,7 @@ def predict_single_row(df_row, model_path='output_files/model_outputs/model_chec
|
|
| 191 |
try:
|
| 192 |
repo_id = "Askhedi/fake_user_detection"
|
| 193 |
model_path = hf_hub_download(repo_id=repo_id, filename="best_model.pth")
|
| 194 |
-
model.load_state_dict(torch.load(model_path, map_location=
|
| 195 |
model.eval()
|
| 196 |
|
| 197 |
# model.load_state_dict(torch.load(model_path, map_location=device))
|
|
|
|
| 191 |
try:
|
| 192 |
repo_id = "Askhedi/fake_user_detection"
|
| 193 |
model_path = hf_hub_download(repo_id=repo_id, filename="best_model.pth")
|
| 194 |
+
model.load_state_dict(torch.load(model_path, map_location=device))
|
| 195 |
model.eval()
|
| 196 |
|
| 197 |
# model.load_state_dict(torch.load(model_path, map_location=device))
|