ChemDave commited on
Commit
ccaba22
·
verified ·
1 Parent(s): 927ada4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py CHANGED
@@ -245,5 +245,21 @@ demo = gr.Interface(
245
  description="A curriculum-aligned chemistry practical tutor."
246
  )
247
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
248
  demo.launch()
249
 
 
245
  description="A curriculum-aligned chemistry practical tutor."
246
  )
247
 
248
+ test_questions = [
249
+ "How do I calculate titre from burette readings?",
250
+ "Explain the difference between observation and inference.",
251
+ "What is the equivalence point?",
252
+ "Must H2SO4 and NaOH have equal moles?",
253
+ "Give me a hypothetical titration example."
254
+ ]
255
+
256
+ for question in test_questions:
257
+ print("\nQUESTION:", question)
258
+
259
+ rules = retrieve_qa_rules(question)
260
+
261
+ print("SELECTED QA RULES:",
262
+ [rule["id"] for rule in rules])
263
+
264
  demo.launch()
265