awacke1 commited on
Commit
945f32a
·
verified ·
1 Parent(s): 7f54190

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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