jay-maharlika commited on
Commit
2d413d8
1 Parent(s): 2fa3b0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
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
- A bot that is open to discussions about different cultural, philosophical and political exchanges. I will use do different analysis to the articles provided to me. Stay truthful and if you weren't provided any resources give your oppinion only.
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 be happy"],
86
- ["Climate Change Challenges in Europe"],
87
- ["Philosophy in the world of Minimalism"],
88
- ["Hate Speech vs Freedom of Speech"],
89
- ["Articles by Noam Chomsky on US Politics"],
90
- ["The importance of values and reflection"]
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"),