sasha HF Staff commited on
Commit
0a00c75
·
verified ·
1 Parent(s): ea3d5f6

Update failed_run.py

Browse files

pushing through the existing function

Files changed (1) hide show
  1. failed_run.py +3 -2
failed_run.py CHANGED
@@ -49,8 +49,7 @@ try:
49
  except FileNotFoundError as e:
50
  print(f"Could not find {args.run_dir}/error.log")
51
 
52
- updated_dataset = Dataset.from_pandas(dataset)
53
- updated_dataset.push_to_hub("EnergyStarAI/requests_debug", split="test", token=TOKEN)
54
 
55
  print("Status set to FAILED")
56
 
@@ -64,6 +63,8 @@ if args.logs_name:
64
  repo_type="dataset",
65
  )
66
  dataset.loc[dataset["model"].isin(args.model_name), ['status']] = "FAILED"
 
 
67
  except Exception as e:
68
  print("That didn't work. Error:")
69
  print(e)
 
49
  except FileNotFoundError as e:
50
  print(f"Could not find {args.run_dir}/error.log")
51
 
52
+
 
53
 
54
  print("Status set to FAILED")
55
 
 
63
  repo_type="dataset",
64
  )
65
  dataset.loc[dataset["model"].isin(args.model_name), ['status']] = "FAILED"
66
+ updated_dataset = Dataset.from_pandas(dataset)
67
+ updated_dataset.push_to_hub("EnergyStarAI/requests_debug", split="test", token=TOKEN)
68
  except Exception as e:
69
  print("That didn't work. Error:")
70
  print(e)