zswvizhang commited on
Commit
719ea48
·
1 Parent(s): 18d8763

update app

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -52,9 +52,14 @@ def change_examples(choice):
52
  if choice in examples:
53
  curr_examples = examples[choice]
54
  return gr.Examples(curr_examples, inputs=[input_01])
55
-
 
 
56
  with gr.Blocks() as demo:
 
 
57
  with gr.Row():
 
58
  with gr.Column():
59
  input_01 = gr.inputs.Textbox(lines=5,label="Input") #gr.Text(label="输入")
60
  radio = gr.Radio(tasks, label="Tasks:")
@@ -76,4 +81,4 @@ with gr.Blocks() as demo:
76
 
77
  if __name__ == "__main__":
78
  demo.launch()
79
- #demo.launch(server_port = 8884, server_name = '0.0.0.0')
 
52
  if choice in examples:
53
  curr_examples = examples[choice]
54
  return gr.Examples(curr_examples, inputs=[input_01])
55
+
56
+ description = """# <p style="text-align: center;"> Chinese Medical T5 is trained on 20+ Chinese medical NLP tasks. </p>"""
57
+
58
  with gr.Blocks() as demo:
59
+ gr.Markdown(value=description)
60
+
61
  with gr.Row():
62
+
63
  with gr.Column():
64
  input_01 = gr.inputs.Textbox(lines=5,label="Input") #gr.Text(label="输入")
65
  radio = gr.Radio(tasks, label="Tasks:")
 
81
 
82
  if __name__ == "__main__":
83
  demo.launch()
84
+ #demo.launch(server_port = 8880, server_name = '0.0.0.0')