Ocillus commited on
Commit
4a0fdf1
·
verified ·
1 Parent(s): 1916021

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -17
app.py CHANGED
@@ -237,23 +237,10 @@ def query_database(query):
237
 
238
  return df
239
 
240
-
241
- example_database = [
242
- "What is Hydrogen Bonding?",
243
- "Tell me the difference between impulse and force.",
244
- "Tell me a joke that Calculus students will understand.",
245
- "How should I review for the AP Biology Exam?",
246
- "What kind of resources are available in PA and Indexademics?",
247
- "What is the StandardCAS™ group?",
248
- "Explain the concept of quantum entanglement.",
249
- "What are the main differences between mitosis and meiosis?",
250
- "How does the Doppler effect work?",
251
- "Explain the process of photosynthesis.",
252
- "What is the significance of the Pythagorean theorem?",
253
- "How does natural selection contribute to evolution?",
254
- "What is the most important chapter in AP Statistics?",
255
- "How should I prepare on the IB Chinese Exam?"
256
- ]
257
 
258
  import random
259
 
 
237
 
238
  return df
239
 
240
+
241
+ with open('example_queries.txt',mode='r') as file:
242
+ example_database = file.read().split('\n')
243
+
 
 
 
 
 
 
 
 
 
 
 
 
 
244
 
245
  import random
246