Update app.py
Browse files
app.py
CHANGED
|
@@ -306,21 +306,6 @@ demo = gr.Interface(
|
|
| 306 |
description="A curriculum-aligned chemistry practical tutor."
|
| 307 |
)
|
| 308 |
|
| 309 |
-
test_questions = [
|
| 310 |
-
"How do I calculate titre from burette readings?",
|
| 311 |
-
"Explain the difference between observation and inference.",
|
| 312 |
-
"What is the equivalence point?",
|
| 313 |
-
"Must H2SO4 and NaOH have equal moles?",
|
| 314 |
-
"Give me a hypothetical titration example."
|
| 315 |
-
]
|
| 316 |
-
|
| 317 |
-
for question in test_questions:
|
| 318 |
-
print("\nQUESTION:", question)
|
| 319 |
-
|
| 320 |
-
rules = retrieve_qa_rules(question)
|
| 321 |
-
|
| 322 |
-
print("SELECTED QA RULES:",
|
| 323 |
-
[rule["id"] for rule in rules])
|
| 324 |
|
| 325 |
demo.launch()
|
| 326 |
|
|
|
|
| 306 |
description="A curriculum-aligned chemistry practical tutor."
|
| 307 |
)
|
| 308 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 309 |
|
| 310 |
demo.launch()
|
| 311 |
|