Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -387,22 +387,21 @@ def summarize(inp,history,data=None,files=None,url=None,pdf_url=None,pdf_batch=N
|
|
387 |
#################################
|
388 |
def clear_fn():
|
389 |
return "",[(None,None)]
|
390 |
-
|
391 |
def itt(url):
|
392 |
out=[]
|
393 |
for i in range(0,1500):
|
394 |
print (i)
|
395 |
for d in range(0,50):
|
396 |
print (d)
|
397 |
-
r = requests.get(f'{url}.{i}.{d}')
|
398 |
if r.status_code == 200:
|
399 |
-
out.append(f'{url}.{i}.{d}')
|
400 |
yield out
|
401 |
for p in range(0,10):
|
402 |
print(p)
|
403 |
-
r = requests.get(f'{url}.{i}.{d}_{p}')
|
404 |
if r.status_code == 200:
|
405 |
-
out.append(f'{url}.{i}.{d}_{p}')
|
406 |
yield out
|
407 |
yield out
|
408 |
|
|
|
387 |
#################################
|
388 |
def clear_fn():
|
389 |
return "",[(None,None)]
|
|
|
390 |
def itt(url):
|
391 |
out=[]
|
392 |
for i in range(0,1500):
|
393 |
print (i)
|
394 |
for d in range(0,50):
|
395 |
print (d)
|
396 |
+
r = requests.get(f'{url}.{i}.{d}.pdf')
|
397 |
if r.status_code == 200:
|
398 |
+
out.append(f'{url}.{i}.{d}.pdf')
|
399 |
yield out
|
400 |
for p in range(0,10):
|
401 |
print(p)
|
402 |
+
r = requests.get(f'{url}.{i}.{d}_{p}.pdf')
|
403 |
if r.status_code == 200:
|
404 |
+
out.append(f'{url}.{i}.{d}_{p}.pdf')
|
405 |
yield out
|
406 |
yield out
|
407 |
|