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 |
+
# Title
|
| 5 |
+
st.title("💡 Random Quote Generator")
|
| 6 |
+
|
| 7 |
+
# Some sample quotes
|
| 8 |
+
quotes = [
|
| 9 |
+
"The best way to get started is to quit talking and begin doing. – Walt Disney",
|
| 10 |
+
"Don’t let yesterday take up too much of today. – Will Rogers",
|
| 11 |
+
"It’s not whether you get knocked down, it’s whether you get up. – Vince Lombardi",
|
| 12 |
+
"If you are working on something exciting, it will keep you motivated. – Steve Jobs",
|
| 13 |
+
"Success is not in what you have, but who you are. – Bo Bennett",
|
| 14 |
+
"Dream bigger. Do bigger. – Anonymous",
|
| 15 |
+
"Opportunities don't happen, you create them. – Chris Grosser",
|
| 16 |
+
"Push yourself, because no one else is going to do it for you. – Anonymous"
|
| 17 |
+
]
|
| 18 |
+
|
| 19 |
+
# Button to generate quote
|
| 20 |
+
if st.button("✨ Generate Quote"):
|
| 21 |
+
st.success(random.choice(quotes))
|