File size: 745 Bytes
87e5d6e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import streamlit as st
import random

st.set_page_config(page_title="Random Quote Generator", page_icon="πŸ’‘")

st.title("πŸ’‘ Random Quote Generator")

# A small list of quotes
quotes = [
    "The best way to predict the future is to invent it. – Alan Kay",
    "Success usually comes to those who are too busy to be looking for it. – Henry David Thoreau",
    "Don't watch the clock; do what it does. Keep going. – Sam Levenson",
    "Whether you think you can or you think you can't, you're right. – Henry Ford",
    "Simplicity is the ultimate sophistication. – Leonardo da Vinci",
    "In the middle of every difficulty lies opportunity. – Albert Einstein"
]

if st.button("Generate Quote"):
    st.info(random.choice(quotes))