Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -236,7 +236,9 @@ def display_images_and_wikipedia_summaries():
|
|
236 |
if not image_files:
|
237 |
st.write("No PNG images found in the current directory.")
|
238 |
return
|
239 |
-
|
|
|
|
|
240 |
for image_file in image_files:
|
241 |
image = Image.open(image_file)
|
242 |
st.image(image, caption=image_file, use_column_width=True)
|
@@ -255,7 +257,6 @@ def display_images_and_wikipedia_summaries():
|
|
255 |
"""
|
256 |
st.markdown("# " + links_md)
|
257 |
|
258 |
-
keyword = image_file.split('.')[0] # Assumes keyword is the file name without extension
|
259 |
|
260 |
|
261 |
|
|
|
236 |
if not image_files:
|
237 |
st.write("No PNG images found in the current directory.")
|
238 |
return
|
239 |
+
|
240 |
+
keyword = image_file.split('.')[0] # Assumes keyword is the file name without extension
|
241 |
+
|
242 |
for image_file in image_files:
|
243 |
image = Image.open(image_file)
|
244 |
st.image(image, caption=image_file, use_column_width=True)
|
|
|
257 |
"""
|
258 |
st.markdown("# " + links_md)
|
259 |
|
|
|
260 |
|
261 |
|
262 |
|