launch-computation-example / pause_space.py
sasha's picture
sasha HF staff
Update pause_space.py
50b92d9 verified
raw
history blame
401 Bytes
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")