Spaces:
Running
Running
changes to questions
Browse files
app.py
CHANGED
@@ -249,6 +249,21 @@ async def on_question_selected(action: cl.Action):
|
|
249 |
related_papers_content = "**Related Papers from PubMed:**\n" + "\n".join(f"- {paper}" for paper in related_papers)
|
250 |
await cl.Message(content=related_papers_content, author="").send()
|
251 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
252 |
# Callback for chat start event
|
253 |
@cl.on_chat_start
|
254 |
async def on_chat_start():
|
@@ -352,20 +367,7 @@ async def on_chat_start():
|
|
352 |
api_key=QDRANT_API_KEY,
|
353 |
collection_name="fda_drugs" # Name of the collection in Qdrant
|
354 |
)
|
355 |
-
|
356 |
-
potential_questions = [
|
357 |
-
"What should I be careful of when taking Metformin?",
|
358 |
-
"What are the contraindications of Aspirin?",
|
359 |
-
"Are there low-cost alternatives to branded Aspirin available over-the-counter?",
|
360 |
-
"What precautions should I take if I'm pregnant or nursing while on Lipitor?",
|
361 |
-
"Should Lipitor be taken at a specific time of day, and does it need to be taken with food?",
|
362 |
-
"What is the recommended dose of Aspirin?",
|
363 |
-
"Can older people take beta blockers?",
|
364 |
-
"How do beta blockers work?",
|
365 |
-
"Can beta blockers be used for anxiety?",
|
366 |
-
"I am taking Aspirin, is it ok to take Glipizide?",
|
367 |
-
"Explain in simple terms how Metformin works?"
|
368 |
-
]
|
369 |
|
370 |
await cl.Message(
|
371 |
content="**Welcome to PharmAssistAI ! Here are some potential questions you can ask:**",
|
|
|
249 |
related_papers_content = "**Related Papers from PubMed:**\n" + "\n".join(f"- {paper}" for paper in related_papers)
|
250 |
await cl.Message(content=related_papers_content, author="").send()
|
251 |
|
252 |
+
|
253 |
+
potential_questions = [
|
254 |
+
"What should I be careful of when taking Metformin?",
|
255 |
+
"What are the contraindications of Aspirin?",
|
256 |
+
"Are there low-cost alternatives to branded Aspirin available over-the-counter?",
|
257 |
+
"What precautions should I take if I'm pregnant or nursing while on Lipitor?",
|
258 |
+
"Should Lipitor be taken at a specific time of day, and does it need to be taken with food?",
|
259 |
+
"What is the recommended dose of Aspirin?",
|
260 |
+
"Can older people take beta blockers?",
|
261 |
+
"How do beta blockers work?",
|
262 |
+
"Can beta blockers be used for anxiety?",
|
263 |
+
"I am taking Aspirin, is it ok to take Glipizide?",
|
264 |
+
"Explain in simple terms how Metformin works?"
|
265 |
+
]
|
266 |
+
|
267 |
# Callback for chat start event
|
268 |
@cl.on_chat_start
|
269 |
async def on_chat_start():
|
|
|
367 |
api_key=QDRANT_API_KEY,
|
368 |
collection_name="fda_drugs" # Name of the collection in Qdrant
|
369 |
)
|
370 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
371 |
|
372 |
await cl.Message(
|
373 |
content="**Welcome to PharmAssistAI ! Here are some potential questions you can ask:**",
|