Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -256,13 +256,17 @@ def summarize(inp,history,data=None,files=None,url=None,pdf_url=None,pdf_batch=N
|
|
256 |
for i in str(pdf_batch):
|
257 |
if i==",":
|
258 |
c+=1
|
|
|
|
|
259 |
try:
|
260 |
for i in range(c):
|
261 |
batch_url = pdf_batch.split(",",c)[i]
|
262 |
bb = read_pdf_online(batch_url)
|
263 |
data=f'{data}\nFile Name URL ({batch_url}):\n{bb}'
|
264 |
-
|
265 |
-
|
|
|
|
|
266 |
|
267 |
|
268 |
if pdf_url.startswith("http"):
|
|
|
256 |
for i in str(pdf_batch):
|
257 |
if i==",":
|
258 |
c+=1
|
259 |
+
print (f'c:: {c}')
|
260 |
+
|
261 |
try:
|
262 |
for i in range(c):
|
263 |
batch_url = pdf_batch.split(",",c)[i]
|
264 |
bb = read_pdf_online(batch_url)
|
265 |
data=f'{data}\nFile Name URL ({batch_url}):\n{bb}'
|
266 |
+
except Exception as e:
|
267 |
+
print(e)
|
268 |
+
#data=f'{data}\nError reading URL ({batch_url})'
|
269 |
+
|
270 |
|
271 |
|
272 |
if pdf_url.startswith("http"):
|