Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 89bf17ef authored by KOVAC Grgur's avatar KOVAC Grgur
Browse files

Removing the whitespace in the url for the gpt2 encoding json and bpe.

parent 87d8fa85
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ from tqdm import tqdm
def _get_encoder(subdir):
print("Downloading encoder and vocab to ", subdir)
for filename in ['encoder.json', 'vocab.bpe']:
r = requests.get("https://openaipublic.blob.core.windows.net/gpt-2/ " + subdir + "/" + filename, stream=True)
r = requests.get("https://openaipublic.blob.core.windows.net/gpt-2/" + subdir + "/" + filename, stream=True)
with open(os.path.join(subdir, filename), 'wb') as f:
file_size = int(r.headers["content-length"])
chunk_size = 1000
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment