Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
import random
|
| 3 |
+
|
| 4 |
+
# Some sample quotes
|
| 5 |
+
QUOTES = [
|
| 6 |
+
"The best way to predict the future is to invent it. – Alan Kay",
|
| 7 |
+
"Life is what happens when you're busy making other plans. – John Lennon",
|
| 8 |
+
"Do not wait to strike till the iron is hot, but make it hot by striking. – William Butler Yeats",
|
| 9 |
+
"Success usually comes to those who are too busy to be looking for it. – Henry David Thoreau",
|
| 10 |
+
"In the middle of every difficulty lies opportunity. – Albert Einstein",
|
| 11 |
+
"The only way to do great work is to love what you do. – Steve Jobs",
|
| 12 |
+
]
|
| 13 |
+
|
| 14 |
+
st.set_page_config(page_title="Random Quote Generator", page_icon="✨")
|
| 15 |
+
|
| 16 |
+
st.title("✨ Random Quote Generator")
|
| 17 |
+
st.write("Click the button below to get inspired!")
|
| 18 |
+
|
| 19 |
+
if st.button("Generate Quote"):
|
| 20 |
+
quote = random.choice(QUOTES)
|
| 21 |
+
st.success(quote)
|