Skip to content

Commit

Permalink
Update process.py
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgayoso authored Feb 1, 2023
1 parent d59957b commit 24b2375
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions human_lung_cell_atlas/scripts/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
scvi.settings.reset_logging_handler()
sys.stderr = open(snakemake.log[0], "w") # noqa: F821
sys.stdout = open(snakemake.log[1], "w") # noqa: F821
HF_TOKEN = snakemake.params["x"]

tmpdir = tempfile.TemporaryDirectory()

Expand Down Expand Up @@ -109,6 +110,5 @@
# create model
hmo = HubModel(model_dir, metadata=hm, model_card=hmch)
# push
repo_token = "token" # TODO provide your token
hmo.push_to_huggingface_hub(repo_name="scvi-tools/human-lung-cell-atlas", repo_token=repo_token, repo_create=True)
hmo.push_to_huggingface_hub(repo_name="scvi-tools/human-lung-cell-atlas", repo_token=HF_TOKEN, repo_create=True)

0 comments on commit 24b2375

Please sign in to comment.