Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,6 @@ import logging
|
|
5 |
import zipfile
|
6 |
import requests
|
7 |
import bibtexparser
|
8 |
-
from tqdm import tqdm
|
9 |
from urllib.parse import quote, urlencode
|
10 |
import gradio as gr
|
11 |
from bs4 import BeautifulSoup
|
@@ -461,7 +460,7 @@ class PaperDownloader:
|
|
461 |
downloaded_files = []
|
462 |
failed_dois = []
|
463 |
downloaded_links = []
|
464 |
-
|
465 |
for i, doi in enumerate(dois):
|
466 |
filepath, success_message, fail_message = self.download_single_doi(doi, progress=progress)
|
467 |
if filepath:
|
@@ -511,8 +510,9 @@ class PaperDownloader:
|
|
511 |
downloaded_files = []
|
512 |
failed_dois = []
|
513 |
downloaded_links = []
|
514 |
-
|
515 |
total_dois = len(dois)
|
|
|
516 |
# Download PDFs
|
517 |
for i, doi in enumerate(dois):
|
518 |
try:
|
@@ -575,8 +575,8 @@ class PaperDownloader:
|
|
575 |
downloaded_files = []
|
576 |
failed_dois = []
|
577 |
downloaded_links = []
|
578 |
-
|
579 |
total_dois = len(dois)
|
|
|
580 |
# Download PDFs
|
581 |
for i, doi in enumerate(dois):
|
582 |
try:
|
|
|
5 |
import zipfile
|
6 |
import requests
|
7 |
import bibtexparser
|
|
|
8 |
from urllib.parse import quote, urlencode
|
9 |
import gradio as gr
|
10 |
from bs4 import BeautifulSoup
|
|
|
460 |
downloaded_files = []
|
461 |
failed_dois = []
|
462 |
downloaded_links = []
|
463 |
+
|
464 |
for i, doi in enumerate(dois):
|
465 |
filepath, success_message, fail_message = self.download_single_doi(doi, progress=progress)
|
466 |
if filepath:
|
|
|
510 |
downloaded_files = []
|
511 |
failed_dois = []
|
512 |
downloaded_links = []
|
513 |
+
|
514 |
total_dois = len(dois)
|
515 |
+
|
516 |
# Download PDFs
|
517 |
for i, doi in enumerate(dois):
|
518 |
try:
|
|
|
575 |
downloaded_files = []
|
576 |
failed_dois = []
|
577 |
downloaded_links = []
|
|
|
578 |
total_dois = len(dois)
|
579 |
+
|
580 |
# Download PDFs
|
581 |
for i, doi in enumerate(dois):
|
582 |
try:
|