import streamlit as st import random st.set_page_config(page_title="Quote Generator", page_icon="💬") st.title("💬 Simple Quote Generator") st.write("Click the button below to get an inspirational quote!") # A small list of sample quotes quotes = [ "The best way to get started is to quit talking and begin doing. — Walt Disney", "Don’t let yesterday take up too much of today. — Will Rogers", "It’s not whether you get knocked down, it’s whether you get up. — Vince Lombardi", "If you are working on something exciting, it will keep you motivated. — Steve Jobs", "Success is not in what you have, but who you are. — Bo Bennett", "Believe you can and you're halfway there. — Theodore Roosevelt", "Keep your face always toward the sunshine—and shadows will fall behind you. — Walt Whitman", "Act as if what you do makes a difference. It does. — William James", ] # Button to generate quote if st.button("✨ Generate Quote"): quote = random.choice(quotes) st.success(quote) else: st.info("Click the button to see a quote!") # Footer st.markdown("---") st.caption("Made with ❤️ using Streamlit on Hugging Face Spaces")