quote-generator / app.py
Umar4321's picture
Update app.py
2ac2a2d verified
raw
history blame contribute delete
841 Bytes
import streamlit as st
import random
# Some sample quotes
QUOTES = [
"The best way to predict the future is to invent it. – Alan Kay",
"Life is what happens when you're busy making other plans. – John Lennon",
"Do not wait to strike till the iron is hot, but make it hot by striking. – William Butler Yeats",
"Success usually comes to those who are too busy to be looking for it. – Henry David Thoreau",
"In the middle of every difficulty lies opportunity. – Albert Einstein",
"The only way to do great work is to love what you do. – Steve Jobs",
]
st.set_page_config(page_title="Random Quote Generator", page_icon="✨")
st.title("✨ Random Quote Generator")
st.write("Click the button below to get inspired!")
if st.button("Generate Quote"):
quote = random.choice(QUOTES)
st.success(quote)