Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -408,7 +408,7 @@ def hf_write(inp,f_name="tmp1",repo_name="Omnibus/tmp1",token=tok):
|
|
408 |
def itt(url):
|
409 |
out=[]
|
410 |
try:
|
411 |
-
for i in range(
|
412 |
print (i)
|
413 |
for d in range(0,10):
|
414 |
print (d)
|
@@ -424,7 +424,7 @@ def itt(url):
|
|
424 |
break
|
425 |
if r.status_code == 200:
|
426 |
out.append(f'{url}.{i}.{d}.pdf')
|
427 |
-
hf_write(out)
|
428 |
yield out
|
429 |
for p in range(0,10):
|
430 |
print(p)
|
@@ -440,7 +440,7 @@ def itt(url):
|
|
440 |
break
|
441 |
if r1.status_code == 200:
|
442 |
out.append(f'{url}.{i}.{d}_{p}.pdf')
|
443 |
-
hf_write(out)
|
444 |
yield out
|
445 |
except Exception as e:
|
446 |
print (e)
|
|
|
408 |
def itt(url):
|
409 |
out=[]
|
410 |
try:
|
411 |
+
for i in range(1332,1500):
|
412 |
print (i)
|
413 |
for d in range(0,10):
|
414 |
print (d)
|
|
|
424 |
break
|
425 |
if r.status_code == 200:
|
426 |
out.append(f'{url}.{i}.{d}.pdf')
|
427 |
+
#hf_write(out)
|
428 |
yield out
|
429 |
for p in range(0,10):
|
430 |
print(p)
|
|
|
440 |
break
|
441 |
if r1.status_code == 200:
|
442 |
out.append(f'{url}.{i}.{d}_{p}.pdf')
|
443 |
+
#hf_write(out)
|
444 |
yield out
|
445 |
except Exception as e:
|
446 |
print (e)
|