import streamlit as st import os from PIL import Image # Placeholder function for Wikipedia content fetching # You'll need to replace this with actual fetching logic def fetch_wikipedia_summary(keyword): # Placeholder text, replace with actual Wikipedia fetching logic return f"Summary about {keyword} from Wikipedia." # Display images from the current directory and fetch related Wikipedia stories def display_images_and_wikipedia_summaries(): st.title('Gallery with Related Stories') # Scan current directory for PNG images image_files = [f for f in os.listdir('.') if f.endswith('.png')] # Check if there are any PNG images if not image_files: st.write("No PNG images found in the current directory.") return # Iterate over found images for image_file in image_files: # Open and display each image image = Image.open(image_file) st.image(image, caption=image_file, use_column_width='always') # Extract a keyword from the image file name for Wikipedia search # This is a simple example; adjust logic as needed for more complex titles keyword = image_file.split('.')[0] # Assumes keyword is the file name without extension # Fetch and display related Wikipedia content wikipedia_summary = fetch_wikipedia_summary(keyword) st.write(wikipedia_summary) # Call the function to display images and summaries display_images_and_wikipedia_summaries() import streamlit as st st.markdown('# Three Dragons 🐉🌍 Mythical Dragons Around the World by Aaron Wacker') dragons = { '#Fafnir #Norse': '- **Story**: Fafnir originally a dwarf, transformed into a fierce dragon due to his greed for the treasure he guarded. He was later slain by the hero Sigurd. - **Significance**: deadly sin of greed and the corrupting power of wealth.', '#Quetzalcoatl #Aztec': '- **Story**: Quetzalcoatl, the Feathered Serpent, is not a dragon in the traditional sense but shares many similarities. He was a deity representing wind, air, and learning. - **Significance**: creator god and a symbol of death and rebirth.', '#Tiamat #Mesopotamian': '- **Story**: Tiamat, primordial goddess of ocean, turned into a dragon-like creature in a battle against her children who threatened her authority. - **Significance**: chaos of primordial creation and is often associated with the forces of nature.' } for dragon, story in dragons.items(): st.subheader(dragon) st.markdown(f"- {story}") st.markdown(''' ![image/png](https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/vkNh6XnEtGSj8mXea1W6p.png) ![image/png](https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/Kr_nqtaglHE_aiFxWH9zF.png) ![image/png](https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/WLRKWqB6dKlMH6saVV9cX.png) ![image/png](https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/Lyazf6FuX4nH__4illVki.png) ![image/png](https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/ZemsxlT3b5idB0W5IjL1o.png) ''') st.markdown(''' # Remixable!! ''') st.markdown('''# Emoji Classifications''') st.markdown('''## Inputs''') st.button("📝 Text") st.button("📖 Read") st.button("📷 Photo") st.button("đŸ–ŧī¸ View") st.button("🎙ī¸ Record") st.button("🎧 Listen") st.button("đŸŽĨ Video") st.button("📹 Capture") st.markdown('''## Outputs''') st.button("đŸ’Ŧ Chat") st.button("✍ī¸ Write") st.button("🎨 Art") st.button("🌄 Create") st.button("đŸŽĩ Music") st.button("đŸŽļ Compose") st.button("đŸ“ŧ Watch") st.button("đŸŋ Movies") st.markdown('''## Health''') st.button("💉 Vaccinate") st.button("đŸŠē Diagnose") st.button("đŸĨ Hospital") st.button("🚑 Emergency") st.button("💊 Meds") st.button("🩹 Bandage") st.button("đŸ§Ŧ DNA") st.button("đŸ”Ŧ Research") st.button("🌡ī¸ Temperature") st.button("🍏 Nutrition") st.markdown('''## Learning''') st.button("📚 Study") st.button("🧠 Brain") st.button("👩‍🎓 Graduate") st.button("📐 Measure") st.button("🔍 Search") st.button("📊 Analyze") st.button("📋 Plan") st.button("🖋ī¸ Write") st.button("👨‍đŸĢ Teach") st.button("🧩 Puzzle") st.markdown('''## AI''') st.button("🤖 Robot") st.button("👾 Game") st.button("đŸ’ģ Code") st.button("🧮 Calculate") st.button("📡 Connect") st.button("🔋 Power") st.button("🕹ī¸ Play") st.button("đŸ–Ĩī¸ Display") st.button("🧑‍đŸ’ģ Develop") st.button("👨‍đŸ”Ŧ Experiment") st.markdown('''## Writing''') st.button("✍ī¸ Author") st.button("📝 Note") st.button("🖊ī¸ Pen") st.button("🖋ī¸ Sign") st.button("📖 Read") st.button("📚 Library") st.button("🔖 Bookmark") st.button("📓 Journal") st.button("✒ī¸ Ink") st.button("📜 Scroll") st.markdown('''## Coding''') st.button("đŸ’ģ Program") st.button("đŸ–Ĩī¸ Monitor") st.button("🔧 Tools") st.button("📊 Data") st.button("📈 Graph") st.button("👨‍đŸ’ģ Develop") st.button("🧑‍đŸ’ģ Engineer") st.button("⌨ī¸ Keyboard") st.button("🖱ī¸ Mouse") st.button("👩‍đŸ’ģ Code") st.markdown('''## Remix''') st.button("🎛ī¸ Mix") st.button("🎚ī¸ Level") st.button("🎧 DJ") st.button("🔊 Sound") st.button("📀 CD") st.button("đŸ’ŋ Disc") st.button("đŸŽļ Lyrics") st.button("đŸŽĩ Tune") st.button("đŸ“ģ Radio") st.button("🎤 Sing") st.markdown('''## Movies''') st.button("đŸŽŦ Direct") st.button("đŸŋ Popcorn") st.button("đŸŽĨ Film") st.button("đŸ“Ŋī¸ Project") st.button("🎞ī¸ Edit") st.button("đŸ“ē TV") st.button("đŸ“ŧ Series") st.button("🔊 Volume") st.button("đŸ–Ĩī¸ Screen") st.button("đŸ’ģ Stream") st.markdown('''## Video''') st.button("đŸŽĨ Record") st.button("📹 Cam") st.button("đŸ“ŧ Replay") st.button("đŸ“ē Watch") st.button("đŸŽŦ Produce") st.button("đŸ–Ĩī¸ Display") st.button("đŸ’ģ Edit") st.button("🎞ī¸ Cut") st.button("đŸ“Ŋī¸ Project") st.button("🔊 Audio") st.markdown('''## Audio''') st.button("đŸŽĩ Listen") st.button("đŸŽļ Melody") st.button("🎧 Earphones") st.button("đŸ“ģ Broadcast") st.button("🎤 Sing") st.button("🔊 Loud") st.button("🎙ī¸ Record") st.button("🎚ī¸ Adjust") st.button("🎛ī¸ Mix") st.button("đŸ’ŋ CD")