Spaces:
Runtime error
Runtime error
File size: 408 Bytes
808c25e 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"{OWNER}/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") |