Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -120,7 +120,7 @@ def get_images():
|
|
120 |
spl2 = line.split(">")[0].strip('""')
|
121 |
if spl2.endswith(".png") or spl2.endswith(".gif") or spl2.endswith(".jpg"):
|
122 |
print(spl2)
|
123 |
-
html_out+=f'<div class="img_class"><a href="{get_url}{spl2}" target="_blank">{
|
124 |
else:
|
125 |
print(spl2)
|
126 |
get_url2=f'{main_directory}images/'
|
@@ -130,7 +130,7 @@ def get_images():
|
|
130 |
spl2 = line2.split(">")[0].strip('""')
|
131 |
if spl2.endswith(".png") or spl2.endswith(".gif") or spl2.endswith(".jpg"):
|
132 |
print(spl2)
|
133 |
-
html_out+=f'<div class="img_class"><a href="{get_url2}{spl2}" target="_blank">{
|
134 |
else:
|
135 |
print(spl2)
|
136 |
html_out+="</div>"
|
|
|
120 |
spl2 = line.split(">")[0].strip('""')
|
121 |
if spl2.endswith(".png") or spl2.endswith(".gif") or spl2.endswith(".jpg"):
|
122 |
print(spl2)
|
123 |
+
html_out+=f'<div class="img_class"><a href="{get_url}{spl2}" target="_blank">{spl2}</a><br><img src={get_url}{spl2}></div>'
|
124 |
else:
|
125 |
print(spl2)
|
126 |
get_url2=f'{main_directory}images/'
|
|
|
130 |
spl2 = line2.split(">")[0].strip('""')
|
131 |
if spl2.endswith(".png") or spl2.endswith(".gif") or spl2.endswith(".jpg"):
|
132 |
print(spl2)
|
133 |
+
html_out+=f'<div class="img_class"><a href="{get_url2}{spl2}" target="_blank">{spl2}</a><br><img src={get_url2}{spl2}></div>'
|
134 |
else:
|
135 |
print(spl2)
|
136 |
html_out+="</div>"
|