datasciencesage commited on
Commit
a529e2b
·
verified ·
1 Parent(s): 5395d59

device fixed

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=torch.device('cuda')))
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))