Spaces:
Runtime error
Runtime error
| from huggingface_hub import HfApi | |
| import os | |
| TOKEN = os.environ.get("DEBUG") | |
| API = HfApi(token=TOKEN) | |
| RESULTS_DATASET_PATH = f"EnergyStarAI/results_debug" | |
| print("Uploading results to Dataset repo at %s" % RESULTS_DATASET_PATH) | |
| API.upload_folder( | |
| folder_path='/data/runs/', | |
| repo_id=RESULTS_DATASET_PATH, | |
| repo_type="dataset" | |
| ) | |
| API.pause_space("EnergyStarAI/launch-computation-example") |