vilarin commited on
Commit
caf315a
·
verified ·
1 Parent(s): 20a01bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -15,7 +15,7 @@ MODEL = os.environ.get("MODEL")
15
 
16
  DESCRIPTION = '''
17
  <div>
18
- <h1 style="text-align: center;">Medster - Diagnostic Assistant</h1>
19
  <p>An AI tool that helps you analyze symptoms and test reports. </p>
20
  <p>🔎 Select the department you need to consult, and enter the symptom description or physical examination information in the input box; you can also upload the test report image in the picture box. </p>
21
  <p>🦕 Please note that the generated information may be inaccurate and does not have any actual reference value. Please contact a professional doctor if necessary. </p>
@@ -91,10 +91,10 @@ def main(text_input="", image_input=None, unit=""):
91
  elif image_input is not None:
92
  return process_image(image_input,unit)
93
 
94
- with gr.Blocks(theme='shivi/calm_seafoam', css=css, title="诊疗助手Alpha") as iface:
95
  with gr.Accordion(""):
96
  gr.Markdown(DESCRIPTION)
97
- unit = gr.Dropdown(label="🩺Department", value='Traditional Chinese Medicine', elem_id="units",
98
  choices=["Traditional Medicine", "Internal Medicine", "Surgery", "Obstetrics and Gynecology", "Pediatrics", \
99
  "Orthodontics", "Andrology", "Dermatology and Venereology", "Infectious Diseases", "Psychiatry", \
100
  "Plastic Surgery Department", "Nutrition Department", "Reproductive Center", "Anesthesiology Department", "Medical Imaging Department", \
 
15
 
16
  DESCRIPTION = '''
17
  <div>
18
+ <h1 style="text-align: center;">Medster - Medical Diagnostic Assistant</h1>
19
  <p>An AI tool that helps you analyze symptoms and test reports. </p>
20
  <p>🔎 Select the department you need to consult, and enter the symptom description or physical examination information in the input box; you can also upload the test report image in the picture box. </p>
21
  <p>🦕 Please note that the generated information may be inaccurate and does not have any actual reference value. Please contact a professional doctor if necessary. </p>
 
91
  elif image_input is not None:
92
  return process_image(image_input,unit)
93
 
94
+ with gr.Blocks(theme='shivi/calm_seafoam', css=css, title="Medster - Medical Diagnostic Assistant") as iface:
95
  with gr.Accordion(""):
96
  gr.Markdown(DESCRIPTION)
97
+ unit = gr.Dropdown(label="🩺Department", value='Traditional Medicine', elem_id="units",
98
  choices=["Traditional Medicine", "Internal Medicine", "Surgery", "Obstetrics and Gynecology", "Pediatrics", \
99
  "Orthodontics", "Andrology", "Dermatology and Venereology", "Infectious Diseases", "Psychiatry", \
100
  "Plastic Surgery Department", "Nutrition Department", "Reproductive Center", "Anesthesiology Department", "Medical Imaging Department", \