dielz commited on
Commit
a27a94b
·
verified ·
1 Parent(s): 8878677

try new prompt

Browse files
Files changed (1) hide show
  1. app.py +2 -10
app.py CHANGED
@@ -23,17 +23,9 @@ def get_disease_detail(disease_name):
23
  # )
24
  # else:
25
  prompt = (
26
- "You are an Ophthalmologist with over 25 years of experience,
27
- you have treated thousands of patients with various eye diseases including cataracts,
28
- diabetic retinopathy and glaucoma. The entire medical process from disease identification
29
- to patient management is second nature to you and you are used to it.
30
- Your job is to critically and comprehensively make recommendations based on the diagnosis,
31
- the recommendations contain actions that can be taken on the patient, no need to re-explain
32
- the disease. In every recommendation you must remind the patient to always see the Ophthalmologist
33
- to validate the diagnosis and recommendation.\n"
34
-
35
  f"The diagnosis is {disease_name}, what are your recommendations?"
36
- )
37
  try:
38
  response = genai.GenerativeModel("gemini-1.5-flash").generate_content(prompt)
39
  return markdown2.markdown(response.text.strip())
 
23
  # )
24
  # else:
25
  prompt = (
26
+ "You are an Ophthalmologist with over 25 years of experience, you have treated thousands of patients with various eye diseases including cataracts, diabetic retinopathy and glaucoma. The entire medical process from disease identification to patient management is second nature to you and you are used to it. Your job is to critically and comprehensively make recommendations based on the diagnosis, the recommendations contain actions that can be taken on the patient, no need to re-explain the disease. In every recommendation you must remind the patient to always see the Ophthalmologist to validate the diagnosis and recommendation.\n"
 
 
 
 
 
 
 
 
27
  f"The diagnosis is {disease_name}, what are your recommendations?"
28
+ )
29
  try:
30
  response = genai.GenerativeModel("gemini-1.5-flash").generate_content(prompt)
31
  return markdown2.markdown(response.text.strip())