Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -66,14 +66,18 @@ def details_fn(query):
|
|
66 |
<center><h3>{title}</h3><br>{description}</center>"""
|
67 |
try:
|
68 |
image_out="""
|
|
|
69 |
<style>
|
70 |
.im_container{
|
71 |
-
background:
|
|
|
72 |
}
|
73 |
.im_each{
|
74 |
-
background:
|
|
|
75 |
}
|
76 |
</style>
|
|
|
77 |
"""
|
78 |
images = soup.findAll('img')
|
79 |
for img in images:
|
@@ -84,7 +88,7 @@ def details_fn(query):
|
|
84 |
</div>
|
85 |
"""
|
86 |
print (img['src'])
|
87 |
-
format_out = f"""
|
88 |
except Exeption as e:
|
89 |
format_out = "None"
|
90 |
print (e)
|
|
|
66 |
<center><h3>{title}</h3><br>{description}</center>"""
|
67 |
try:
|
68 |
image_out="""
|
69 |
+
|
70 |
<style>
|
71 |
.im_container{
|
72 |
+
background:white;
|
73 |
+
width:100%;
|
74 |
}
|
75 |
.im_each{
|
76 |
+
background:blue;
|
77 |
+
width:22%;
|
78 |
}
|
79 |
</style>
|
80 |
+
<div class='im_container>'
|
81 |
"""
|
82 |
images = soup.findAll('img')
|
83 |
for img in images:
|
|
|
88 |
</div>
|
89 |
"""
|
90 |
print (img['src'])
|
91 |
+
format_out = f"""{image_out}</div>"""
|
92 |
except Exeption as e:
|
93 |
format_out = "None"
|
94 |
print (e)
|