Spaces:
Paused
Paused
f to str
Browse files13 unmodified lines1415161718192013 unmodified linesmodel_name = "Pendrokar/TorchMoji"model = AutoModel.from_pretrained(model_name, cache_dir="~/.cache/huggingface/hub/")tokenizer = AutoTokenizer.from_pretrained(model_name)model_path = "~/.cache/huggingface/hub/{model_name}/pytorch_model.bin"vocab_path = './' + model_name + "/vocabulary.json"def top_elements(array, k):13 unmodified lines1415161718192013 unmodified linesmodel_name = "Pendrokar/TorchMoji"model = AutoModel.from_pretrained(model_name, cache_dir="~/.cache/huggingface/hub/")tokenizer = AutoTokenizer.from_pretrained(model_name)model_path = f"~/.cache/huggingface/hub/{model_name}/pytorch_model.bin"vocab_path = './' + model_name + "/vocabulary.json"def top_elements(array, k):
app.py+1-1