Spaces:
Sleeping
Sleeping
File size: 699 Bytes
f3269de 0a0e191 f3269de 0a0e191 f3269de 0a0e191 f3269de 0a0e191 |
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
# 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.")
|