launch-computation-example / create_results.py
meg-huggingface
Adding a create results script, to see if that can work.
6c83bf5
raw
history blame
251 Bytes
import os
import sys
from huggingface_hub import HfApi
TOKEN = os.environ.get("DEBUG")
api = HfApi(token=TOKEN)
out_dir = sys.argv[1]
api.upload_folder(
folder_path=out_dir,
repo_id="EnergyStarAI/results_debug",
repo_type="dataset",
)