File size: 838 Bytes
30f1063
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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

# Title
st.title("💡 Random Quote Generator")

# Some 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",
    "Dream bigger. Do bigger. – Anonymous",
    "Opportunities don't happen, you create them. – Chris Grosser",
    "Push yourself, because no one else is going to do it for you. – Anonymous"
]

# Button to generate quote
if st.button("✨ Generate Quote"):
    st.success(random.choice(quotes))