Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -237,9 +237,9 @@ def display_images_and_wikipedia_summaries():
|
|
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)
|
245 |
|
|
|
237 |
st.write("No PNG images found in the current directory.")
|
238 |
return
|
239 |
|
|
|
240 |
|
241 |
for image_file in image_files:
|
242 |
+
keyword = image_file.split('.')[0] # Assumes keyword is the file name without extension
|
243 |
image = Image.open(image_file)
|
244 |
st.image(image, caption=image_file, use_column_width=True)
|
245 |
|