Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -65,12 +65,18 @@ def details_fn(query):
|
|
| 65 |
out = f"""
|
| 66 |
<center><h3>{title}</h3><br>{description}</center>"""
|
| 67 |
try:
|
| 68 |
-
|
| 69 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
except Exeption as e:
|
| 71 |
-
|
| 72 |
print (e)
|
| 73 |
-
return out,
|
| 74 |
|
| 75 |
def first():
|
| 76 |
out = '''<h1>Loading'''
|
|
|
|
| 65 |
out = f"""
|
| 66 |
<center><h3>{title}</h3><br>{description}</center>"""
|
| 67 |
try:
|
| 68 |
+
image_out=""
|
| 69 |
+
images = soup.findAll('img')
|
| 70 |
+
for img in images:
|
| 71 |
+
|
| 72 |
+
image_out += f"""
|
| 73 |
+
<img src={img['src']}><br>
|
| 74 |
+
"""
|
| 75 |
+
print (img['src'])
|
| 76 |
except Exeption as e:
|
| 77 |
+
image_out = "None"
|
| 78 |
print (e)
|
| 79 |
+
return out,image_out
|
| 80 |
|
| 81 |
def first():
|
| 82 |
out = '''<h1>Loading'''
|