Quote-generator / app.py
BetaGen's picture
Update app.py
0a0e191 verified
raw
history blame contribute delete
699 Bytes
import streamlit as st
import random
# List of quotes
quotes = [
"The best way to predict the future is to invent it. – Alan Kay",
"Life is 10% what happens to us and 90% how we react to it. – Charles R. Swindoll",
"The purpose of our lives is to be happy. – Dalai Lama",
"In the middle of difficulty lies opportunity. – Albert Einstein",
"Be yourself; everyone else is already taken. – Oscar Wilde",
]
# Streamlit app
st.set_page_config(page_title="Random Quote Generator")
st.title("πŸ“œ Random Quote Generator")
if st.button("Get a Random Quote"):
quote = random.choice(quotes)
st.success(quote)
else:
st.info("Click the button to generate a quote.")