Spaces:
Runtime error
Runtime error
Update failed_run.py
Browse filesmaybe we don't even need upload_results()
- failed_run.py +0 -7
failed_run.py
CHANGED
|
@@ -52,15 +52,8 @@ try:
|
|
| 52 |
print("Status set to FAILED")
|
| 53 |
else:
|
| 54 |
dataset.loc[dataset["model"].isin([args.model_name]), ['status']] = "COMPLETED"
|
| 55 |
-
models_ran = upload_results('./runs')
|
| 56 |
-
dataset.loc[dataset["model"].isin(models_ran), ['status']] = "COMPLETED"
|
| 57 |
print("Status set to COMPLETE")
|
| 58 |
# Add a new column for the error message if necessary
|
| 59 |
-
if "error_message" not in dataset.columns:
|
| 60 |
-
dataset["error_message"] = ""
|
| 61 |
-
dataset.loc[dataset["model"].isin([args.model_name]), ['error_message']] = error_message
|
| 62 |
-
except FileNotFoundError as e:
|
| 63 |
-
print(f"Could not find {args.run_dir}/error.log")
|
| 64 |
|
| 65 |
updated_dataset = Dataset.from_pandas(dataset)
|
| 66 |
updated_dataset.push_to_hub("EnergyStarAI/requests_debug", split="test", token=TOKEN)
|
|
|
|
| 52 |
print("Status set to FAILED")
|
| 53 |
else:
|
| 54 |
dataset.loc[dataset["model"].isin([args.model_name]), ['status']] = "COMPLETED"
|
|
|
|
|
|
|
| 55 |
print("Status set to COMPLETE")
|
| 56 |
# Add a new column for the error message if necessary
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
updated_dataset = Dataset.from_pandas(dataset)
|
| 59 |
updated_dataset.push_to_hub("EnergyStarAI/requests_debug", split="test", token=TOKEN)
|