Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(
|
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"
|