Spaces:
Sleeping
Sleeping
jay-maharlika
commited on
Commit
•
2d413d8
1
Parent(s):
2fa3b0a
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def get_response_from_query(db, query, k=3):
|
|
39 |
prompt = PromptTemplate(
|
40 |
input_variables=["question", "docs"],
|
41 |
template="""
|
42 |
-
|
43 |
Answer the following question: {question}
|
44 |
By searching the following articles: {docs}
|
45 |
|
@@ -82,12 +82,12 @@ def greet(query):
|
|
82 |
answer,sources,evals = get_response_from_query(db,query,2)
|
83 |
return answer,sources,evals
|
84 |
examples = [
|
85 |
-
["How to
|
86 |
-
["
|
87 |
-
["
|
88 |
-
["
|
89 |
-
["
|
90 |
-
["
|
91 |
]
|
92 |
demo = gr.Interface(fn=greet, title="MedNavi", inputs="text",
|
93 |
outputs=[gr.components.Textbox(lines=3, label="Response"),
|
|
|
39 |
prompt = PromptTemplate(
|
40 |
input_variables=["question", "docs"],
|
41 |
template="""
|
42 |
+
You are an AI assistant that assists users find information on diseases, including prevention methods and treatment options. Only provide accurate answers.
|
43 |
Answer the following question: {question}
|
44 |
By searching the following articles: {docs}
|
45 |
|
|
|
82 |
answer,sources,evals = get_response_from_query(db,query,2)
|
83 |
return answer,sources,evals
|
84 |
examples = [
|
85 |
+
["How to diagnose Lupus Nephritis?"],
|
86 |
+
["How to prevent Medullary Sponge Kidney?"]
|
87 |
+
["What are the symptoms of Paget's Disease of Bone?"],
|
88 |
+
["Who is at risk for Urinary Tract Infections?"],
|
89 |
+
["What are the treatments for Osteoarthritis?"],
|
90 |
+
["What is Anxiety Disorder?"]
|
91 |
]
|
92 |
demo = gr.Interface(fn=greet, title="MedNavi", inputs="text",
|
93 |
outputs=[gr.components.Textbox(lines=3, label="Response"),
|