Update app.py
Browse files
app.py
CHANGED
@@ -724,7 +724,7 @@ def display_videos_and_links():
|
|
724 |
display_glossary_entity(k)
|
725 |
col_index += 1 # Increment column index to place the next video in the next column
|
726 |
|
727 |
-
|
728 |
def display_images_and_wikipedia_summaries(num_columns=4):
|
729 |
image_files = [f for f in os.listdir('.') if f.endswith('.png')]
|
730 |
if not image_files:
|
@@ -1416,7 +1416,7 @@ if len(document_sections) > 0:
|
|
1416 |
|
1417 |
|
1418 |
|
1419 |
-
display_images_and_wikipedia_summaries() # Image Jump Grid
|
1420 |
display_videos_and_links() # Video Jump Grid
|
|
|
1421 |
display_glossary_grid(roleplaying_glossary) # Word Glossary Jump Grid
|
1422 |
display_buttons_with_scores() # Feedback Jump Grid
|
|
|
724 |
display_glossary_entity(k)
|
725 |
col_index += 1 # Increment column index to place the next video in the next column
|
726 |
|
727 |
+
@st.cache_resource
|
728 |
def display_images_and_wikipedia_summaries(num_columns=4):
|
729 |
image_files = [f for f in os.listdir('.') if f.endswith('.png')]
|
730 |
if not image_files:
|
|
|
1416 |
|
1417 |
|
1418 |
|
|
|
1419 |
display_videos_and_links() # Video Jump Grid
|
1420 |
+
display_images_and_wikipedia_summaries() # Image Jump Grid
|
1421 |
display_glossary_grid(roleplaying_glossary) # Word Glossary Jump Grid
|
1422 |
display_buttons_with_scores() # Feedback Jump Grid
|