regisss HF staff commited on
Commit
a10615a
·
verified ·
1 Parent(s): 568dde5

Removed unused method `upload_results`

Browse files
Files changed (1) hide show
  1. failed_run.py +0 -11
failed_run.py CHANGED
@@ -29,17 +29,6 @@ args = parser.parse_args()
29
  # Updating request
30
  dataset = load_dataset("EnergyStarAI/requests_debug", split="test", token=TOKEN).to_pandas()
31
 
32
- def upload_results(output_dir):
33
- models_ran=[]
34
- for f in os.scandir(output_dir):
35
- if f.is_dir():
36
- for s in os.scandir(f):
37
- if s.is_dir() and s.name not in ['hooks','info','objects','refs','logs']:
38
- for m in os.scandir(s):
39
- models_ran.append(s.name+'/' + m.name)
40
- return models_ran
41
-
42
-
43
  # Set benchmark to failed
44
  # TODO: This doesn't have to be try-except, we could actually check if the file is there.
45
  try:
 
29
  # Updating request
30
  dataset = load_dataset("EnergyStarAI/requests_debug", split="test", token=TOKEN).to_pandas()
31
 
 
 
 
 
 
 
 
 
 
 
 
32
  # Set benchmark to failed
33
  # TODO: This doesn't have to be try-except, we could actually check if the file is there.
34
  try: