vilarin commited on
Commit
f14ae84
·
verified ·
1 Parent(s): 7b20aba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -109,9 +109,9 @@ def process_image(api_key, image_input, unit):
109
  def main(api_key, text_input="", image_input=None, unit):
110
  SYS_PROMPT = read('system_prompt.txt')
111
  if text_input and image_input is None:
112
- return process_text(text_input,unit)
113
  elif image_input is not None:
114
- return process_image(image_input,unit)
115
 
116
  with gr.Blocks(theme='shivi/calm_seafoam', css=css, title="Medster - Medical Diagnostic Assistant") as iface:
117
  with gr.Accordion(""):
 
109
  def main(api_key, text_input="", image_input=None, unit):
110
  SYS_PROMPT = read('system_prompt.txt')
111
  if text_input and image_input is None:
112
+ return process_text(api_key, text_input, unit)
113
  elif image_input is not None:
114
+ return process_image(api_key, image_input, unit)
115
 
116
  with gr.Blocks(theme='shivi/calm_seafoam', css=css, title="Medster - Medical Diagnostic Assistant") as iface:
117
  with gr.Accordion(""):