awacke1 commited on
Commit
f8fcd7c
Β·
verified Β·
1 Parent(s): c4c8c89

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +29 -4
app.py CHANGED
@@ -7,9 +7,29 @@ import random
7
  # Load famous quotes dataset
8
  @st.cache_data
9
  def load_famous_quotes():
10
- url = 'https://raw.githubusercontent.com/your-username/your-repo/main/quotes.csv' # Replace with actual URL
11
- quotes_data = pd.read_csv(url)
12
- return quotes_data
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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("Cite Source for famous quotes dataset: [Kaggle - Quotes](https://www.kaggle.com/datasets/manann/quotes-500k?resource=download)")
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
+