muqeet1234's picture
Update app.py
083c2a0 verified
raw
history blame contribute delete
982 Bytes
import streamlit as st
import random
# Title and description
st.title("Daily Motivation Quote Generator")
st.write("Click the button below to generate a random motivational quote!")
# Static dataset of quotes
quotes = [
"The only way to do great work is to love what you do. – Steve Jobs",
"Success is not final, failure is not fatal: It is the courage to continue that counts. – Winston Churchill",
"Believe you can and you're halfway there. – Theodore Roosevelt",
"It always seems impossible until it’s done. – Nelson Mandela",
"Hardships often prepare ordinary people for an extraordinary destiny. – C.S. Lewis",
"Don’t watch the clock; do what it does. Keep going. – Sam Levenson",
"You don’t have to be great to start, but you have to start to be great. – Zig Ziglar",
]
# Generate a random quote when the button is clicked
if st.button("Generate Quote"):
random_quote = random.choice(quotes)
st.success(random_quote)