Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -89,7 +89,7 @@ def details_fn(query):
|
|
89 |
"""
|
90 |
images = soup.findAll('img')
|
91 |
for img in images:
|
92 |
-
if not img.startswith("data:"):
|
93 |
image_out += f"""
|
94 |
<div class='im_each'>
|
95 |
<img src={img['src']}>
|
@@ -97,7 +97,7 @@ def details_fn(query):
|
|
97 |
"""
|
98 |
print (img['src'])
|
99 |
format_out = f"""{image_out}</div>"""
|
100 |
-
except
|
101 |
format_out = "None"
|
102 |
print (e)
|
103 |
return out,format_out
|
|
|
89 |
"""
|
90 |
images = soup.findAll('img')
|
91 |
for img in images:
|
92 |
+
if not img['src'].startswith("data:"):
|
93 |
image_out += f"""
|
94 |
<div class='im_each'>
|
95 |
<img src={img['src']}>
|
|
|
97 |
"""
|
98 |
print (img['src'])
|
99 |
format_out = f"""{image_out}</div>"""
|
100 |
+
except Exception as e:
|
101 |
format_out = "None"
|
102 |
print (e)
|
103 |
return out,format_out
|