#huggingface-cli login from huggingface_hub import upload_file #upload_file("bio/a100_labels.txt","bio/a100_labels.txt","ajitrajasekharan/self-supervised-ner-PER-ORG-LOC",repo_type="space") #upload_file("bbc/bbc_labels.txt","bbc/bbc_labels.txt","ajitrajasekharan/self-supervised-ner-PER-ORG-LOC",repo_type="space") #upload_file("batched_main_NER.py","batched_main_NER.py","ajitrajasekharan/self-supervised-ner-PER-ORG-LOC",repo_type="space") #upload_file("ensemble_config.json","ensemble_config.json","ajitrajasekharan/self-supervised-ner-PER-ORG-LOC",repo_type="space") #upload_file("entity_types_consolidated.txt","entity_types_consolidated.txt","ajitrajasekharan/self-supervised-ner-PER-ORG-LOC",repo_type="space") upload_file("upload.py","upload.py","ajitrajasekharan/self-supervised-ner-PER-ORG-LOC",repo_type="space") #to download #from huggingface_hub import hf_hub_url, cached_download #config_file_url = hf_hub_url("nlpaueb/legal-bert-base-uncased", filename="pytorch_model.bin") #cached_download(config_file_url) #import pdb #from huggingface_hub import hf_hub_url, cached_download #from huggingface_hub import hf_hub_download #pdb.set_trace() #url = hf_hub_url("nlpaueb/legal-bert-base-uncased", filename="pytorch_model.bin") #hf_hub_download("nlpaueb/legal-bert-base-uncased", filename="pytorch_model.bin") #file_url = hf_hub_url("nlpaueb/legal-bert-base-uncased", filename="pytorch_model.bin") #cached_download(file_url)