Spaces:
Runtime error
Runtime error
File size: 401 Bytes
808c25e 7b249aa 50b92d9 7b249aa 99368d9 de862c5 7b249aa 808c25e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
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") |