Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -7,9 +7,29 @@ import random
|
|
7 |
# Load famous quotes dataset
|
8 |
@st.cache_data
|
9 |
def load_famous_quotes():
|
10 |
-
|
11 |
-
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
# Predefined custom quotes
|
15 |
custom_quotes = [
|
@@ -147,7 +167,7 @@ def main():
|
|
147 |
if st.button('π Regenerate Quotes'):
|
148 |
regenerate_quotes()
|
149 |
st.markdown("---")
|
150 |
-
st.write("
|
151 |
|
152 |
# Function to regenerate quotes
|
153 |
def regenerate_quotes():
|
@@ -180,3 +200,8 @@ def main():
|
|
180 |
|
181 |
if __name__ == "__main__":
|
182 |
main()
|
|
|
|
|
|
|
|
|
|
|
|
7 |
# Load famous quotes dataset
|
8 |
@st.cache_data
|
9 |
def load_famous_quotes():
|
10 |
+
famous_quotes = [
|
11 |
+
{"Number": 1, "Quote Topic": "Imagination", "Quote": "The true sign of intelligence is not knowledge but imagination. β Albert Einstein"},
|
12 |
+
{"Number": 2, "Quote Topic": "Perseverance", "Quote": "I have not failed. I've just found 10,000 ways that won't work. β Thomas Edison"},
|
13 |
+
{"Number": 3, "Quote Topic": "Innovation", "Quote": "Innovation distinguishes between a leader and a follower. β Steve Jobs"},
|
14 |
+
{"Number": 4, "Quote Topic": "Research", "Quote": "Research is what I'm doing when I don't know what I'm doing. β Wernher von Braun"},
|
15 |
+
{"Number": 5, "Quote Topic": "Possibility", "Quote": "The only way to discover the limits of the possible is to go beyond them into the impossible. β Arthur C. Clarke"},
|
16 |
+
{"Number": 6, "Quote Topic": "Success", "Quote": "Success is a science; if you have the conditions, you get the result. β Oscar Wilde"},
|
17 |
+
{"Number": 7, "Quote Topic": "Expertise", "Quote": "An expert is a person who has made all the mistakes that can be made in a very narrow field. β Niels Bohr"},
|
18 |
+
{"Number": 8, "Quote Topic": "Curiosity", "Quote": "The important thing is to not stop questioning. Curiosity has its own reason for existing. β Albert Einstein"},
|
19 |
+
{"Number": 9, "Quote Topic": "Future", "Quote": "The best way to predict the future is to invent it. β Alan Kay"},
|
20 |
+
{"Number": 10, "Quote Topic": "Progress", "Quote": "If I have seen further it is by standing on the shoulders of Giants. β Isaac Newton"},
|
21 |
+
{"Number": 11, "Quote Topic": "Logic and Imagination", "Quote": "Logic will get you from A to B. Imagination will take you everywhere. β Albert Einstein"},
|
22 |
+
{"Number": 12, "Quote Topic": "Imagination", "Quote": "Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world. β Albert Einstein"},
|
23 |
+
{"Number": 13, "Quote Topic": "Science", "Quote": "Science is a way of thinking much more than it is a body of knowledge. β Carl Sagan"},
|
24 |
+
{"Number": 14, "Quote Topic": "Problem Solving", "Quote": "We cannot solve our problems with the same thinking we used when we created them. β Albert Einstein"},
|
25 |
+
{"Number": 15, "Quote Topic": "Experimentation", "Quote": "The true method of knowledge is experiment. β William Blake"},
|
26 |
+
{"Number": 16, "Quote Topic": "Questions", "Quote": "The scientist is not a person who gives the right answers, he's one who asks the right questions. β Claude Levi-Strauss"},
|
27 |
+
{"Number": 17, "Quote Topic": "Possibility", "Quote": "It's kind of fun to do the impossible. β Walt Disney"},
|
28 |
+
{"Number": 18, "Quote Topic": "Technology", "Quote": "Any sufficiently advanced technology is indistinguishable from magic. β Arthur C. Clarke"},
|
29 |
+
{"Number": 19, "Quote Topic": "Creativity", "Quote": "Creativity is intelligence having fun. β Albert Einstein"},
|
30 |
+
{"Number": 20, "Quote Topic": "Invention", "Quote": "To invent, you need a good imagination and a pile of junk. β Thomas Edison"}
|
31 |
+
]
|
32 |
+
return pd.DataFrame(famous_quotes)
|
33 |
|
34 |
# Predefined custom quotes
|
35 |
custom_quotes = [
|
|
|
167 |
if st.button('π Regenerate Quotes'):
|
168 |
regenerate_quotes()
|
169 |
st.markdown("---")
|
170 |
+
st.write("Famous quotes provided by the app.")
|
171 |
|
172 |
# Function to regenerate quotes
|
173 |
def regenerate_quotes():
|
|
|
200 |
|
201 |
if __name__ == "__main__":
|
202 |
main()
|
203 |
+
|
204 |
+
|
205 |
+
|
206 |
+
|
207 |
+
|