Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ def get_images():
|
|
43 |
spl = feed1.text.split("href=")
|
44 |
for line in spl:
|
45 |
spl2 = line.split(">")[0].strip('""')
|
46 |
-
if spl2.endswith(".png
|
47 |
print(spl2)
|
48 |
html_out+=f'<div class="img_class"><a href="{get_url}{spl2}">{get_url}{spl2}</a><br><img src={get_url}{spl2}></div>'
|
49 |
else:
|
|
|
43 |
spl = feed1.text.split("href=")
|
44 |
for line in spl:
|
45 |
spl2 = line.split(">")[0].strip('""')
|
46 |
+
if spl2.endswith(".png") or spl2.endswith(".gif") or spl2.endswith(".jpg"):
|
47 |
print(spl2)
|
48 |
html_out+=f'<div class="img_class"><a href="{get_url}{spl2}">{get_url}{spl2}</a><br><img src={get_url}{spl2}></div>'
|
49 |
else:
|