File size: 1,439 Bytes
eb9d4df
 
 
 
 
 
 
 
8cd3d58
 
 
 
 
 
 
801e77c
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#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)