amitness commited on
Commit
05a4255
·
verified ·
1 Parent(s): 3c39f48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -13,7 +13,9 @@ def convert_tar_to_zip(arxiv_url):
13
  .replace('arxiv.org', 'export.arxiv.org'))
14
 
15
  # Fetch the latex source as .tar.gz file
16
- tar_file = requests.get(latex_source_url).content
 
 
17
  with tarfile.open(fileobj=io.BytesIO(tar_file)) as tar:
18
  with tempfile.TemporaryDirectory() as temp_dir:
19
  # Extract the tar file to a temporary directory
 
13
  .replace('arxiv.org', 'export.arxiv.org'))
14
 
15
  # Fetch the latex source as .tar.gz file
16
+ resp = requests.get(latex_source_url)
17
+ print(resp.status_code)
18
+ tar_file = resp.content
19
  with tarfile.open(fileobj=io.BytesIO(tar_file)) as tar:
20
  with tempfile.TemporaryDirectory() as temp_dir:
21
  # Extract the tar file to a temporary directory