launch-computation-example / pause_space.py
sasha's picture
sasha HF Staff
Update pause_space.py
6e2ed1e verified
raw
history blame
413 Bytes
from huggingface_hub import HfApi
import os
TOKEN = os.environ.get("DEBUG")
API = HfApi(token=TOKEN)
RESULTS_DATASET_PATH = f"EnergyStarAI/requests_debug"
print("Uploading results to Dataset repo at %s" % RESULTS_DATASET_PATH)
API.upload_file(
folder_path='/optimum-benchmark/runs/',
repo_id=RESULTS_DATASET_PATH,
repo_type="dataset"
)
API.pause_space("EnergyStarAI/launch-computation-example")