Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
|
|
|
|
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
|