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