Update app.py
Browse files
app.py
CHANGED
@@ -47,8 +47,6 @@ if not os.path.exists(downloaded_embedding_folder):
|
|
47 |
if(not embeds_url):
|
48 |
embeds_path = hf_hub_download(repo_id=repo_id_embeds, filename="learned_embeds.bin", use_auth_token=True)
|
49 |
token_path = hf_hub_download(repo_id=repo_id_embeds, filename="token_identifier.txt", use_auth_token=True)
|
50 |
-
!cp $embeds_path $downloaded_embedding_folder
|
51 |
-
!cp $token_path $downloaded_embedding_folder
|
52 |
with open(f'{downloaded_embedding_folder}/token_identifier.txt', 'r') as file:
|
53 |
placeholder_token_string = file.read()
|
54 |
else:
|
|
|
47 |
if(not embeds_url):
|
48 |
embeds_path = hf_hub_download(repo_id=repo_id_embeds, filename="learned_embeds.bin", use_auth_token=True)
|
49 |
token_path = hf_hub_download(repo_id=repo_id_embeds, filename="token_identifier.txt", use_auth_token=True)
|
|
|
|
|
50 |
with open(f'{downloaded_embedding_folder}/token_identifier.txt', 'r') as file:
|
51 |
placeholder_token_string = file.read()
|
52 |
else:
|