zeeshan4801 commited on
Commit
0c139d9
·
verified ·
1 Parent(s): 22d9e29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -0
app.py CHANGED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import random
3
+
4
+ # A list of sample quotes
5
+ quotes = [
6
+ "The best way to get started is to quit talking and begin doing. – Walt Disney",
7
+ "Don’t let yesterday take up too much of today. – Will Rogers",
8
+ "It’s not whether you get knocked down, it’s whether you get up. – Vince Lombardi",
9
+ "If you are working on something exciting, it will keep you motivated. – Steve Jobs",
10
+ "Success is not in what you have, but who you are. – Bo Bennett",
11
+ "Happiness is not something ready made. It comes from your own actions. – Dalai Lama",
12
+ ]
13
+
14
+ st.set_page_config(page_title="Random Quote Generator", page_icon="💬", layout="centered")
15
+
16
+ st.title("💬 Random Quote Generator")
17
+
18
+ if st.button("Generate Quote"):
19
+ quote = random.choice(quotes)
20
+ st.success(quote)
21
+ else:
22
+ st.info("Click the button to generate a random quote!")