File size: 841 Bytes
2ac2a2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)