vilarin commited on
Commit
d98c79b
·
verified ·
1 Parent(s): 2f19844

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -5
app.py CHANGED
@@ -30,7 +30,19 @@ DESCRIPTION = '''
30
  </div>
31
  '''
32
 
33
- LICENSE = '采用' + MODEL + '模型'
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  def process_text(text_input, unit):
36
  if text_input:
@@ -83,11 +95,11 @@ def main(text_input="", image_input=None, unit=""):
83
  with gr.Blocks(theme='shivi/calm_seafoam') as iface:
84
  with gr.Accordion(""):
85
  gr.Markdown(DESCRIPTION)
86
- unit = gr.Dropdown(label="🩺科室", value='内科', elem_id="units",
87
- choices=["内科", "外科", "妇产科", "男科", "儿科", \
88
- "五官科", "肿瘤科", "皮肤性病科", "中医科", "传染科", "精神心理科", \
89
  "整形美容科", "营养科", "生殖中心", "麻醉医学科", "医学影像科", \
90
- "急诊科", "检验科"])
91
  with gr.Row():
92
  output_box = gr.Markdown(label="分析") # Create an output textbox
93
  with gr.Row():
 
30
  </div>
31
  '''
32
 
33
+
34
+ css = """
35
+ h1 {
36
+ text-align: center;
37
+ display: block;
38
+ }
39
+ footer {
40
+ display:none !important
41
+ }
42
+ """
43
+
44
+
45
+ LICENSE = '采用 ' + MODEL + ' 模型'
46
 
47
  def process_text(text_input, unit):
48
  if text_input:
 
95
  with gr.Blocks(theme='shivi/calm_seafoam') as iface:
96
  with gr.Accordion(""):
97
  gr.Markdown(DESCRIPTION)
98
+ unit = gr.Dropdown(label="🩺科室", value='中医科', elem_id="units",
99
+ choices=["中医科", "内科", "外科", "妇产科", "儿科", \
100
+ "五官科", "男科", "皮肤性病科", "传染科", "精神心理科", \
101
  "整形美容科", "营养科", "生殖中心", "麻醉医学科", "医学影像科", \
102
+ "骨科", "肿瘤科", "急诊科", "检验科"])
103
  with gr.Row():
104
  output_box = gr.Markdown(label="分析") # Create an output textbox
105
  with gr.Row():