Omnibus commited on
Commit
d271513
·
1 Parent(s): e06a544

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -235,9 +235,9 @@ def summarize(inp,history,data=None,file=None,url=None,pdf_url=None):
235
  history = [(inp,"Working on it...")]
236
  yield "",history
237
  if pdf_url.startswith("http"):
238
- out = read_pdf_online(url)
239
  data=out
240
- if url != "":
241
  val, out = find_all(url)
242
  if not val:
243
  data="Error"
 
235
  history = [(inp,"Working on it...")]
236
  yield "",history
237
  if pdf_url.startswith("http"):
238
+ out = read_pdf_online(pdf_url)
239
  data=out
240
+ if url.startswith("http"):
241
  val, out = find_all(url)
242
  if not val:
243
  data="Error"