orrinin commited on
Commit
e6786ff
·
verified ·
1 Parent(s): 13ef16d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -56,8 +56,8 @@ def process_text(text_input, unit):
56
  api_name="/model_chat"
57
  )
58
  response = job.result()
59
- print(response)
60
  local_data.results = response[1][0][1]
 
61
 
62
 
63
  def process_image(image_input, unit):
@@ -120,6 +120,7 @@ def main(text_input="", image_input=None, unit=""):
120
  return local_data.result
121
 
122
  with gr.Blocks(css=css, title="家庭医生AI助手", theme="soft") as iface:
 
123
  with gr.Accordion(""):
124
  gr.Markdown(DESCRIPTION)
125
  unit = gr.Dropdown(label="🩺科室", value='中医科', elem_id="units",
 
56
  api_name="/model_chat"
57
  )
58
  response = job.result()
 
59
  local_data.results = response[1][0][1]
60
+ print(local_data.results)
61
 
62
 
63
  def process_image(image_input, unit):
 
120
  return local_data.result
121
 
122
  with gr.Blocks(css=css, title="家庭医生AI助手", theme="soft") as iface:
123
+ init_data()
124
  with gr.Accordion(""):
125
  gr.Markdown(DESCRIPTION)
126
  unit = gr.Dropdown(label="🩺科室", value='中医科', elem_id="units",