zhaokeyao1 commited on
Commit
c3494a0
·
1 Parent(s): 347f513

Update button

Browse files
Files changed (1) hide show
  1. app.py +8 -9
app.py CHANGED
@@ -404,14 +404,13 @@ with gr.Blocks(css="#chatbot{height:350px} .overflow-y-auto{height:600px}") as d
404
  with gr.Column(scale=1, min_width=50):
405
  user_in_file = gr.File(label="Upload File")
406
  #submit_button = gr.Button("Submit")
407
- issue_button = gr.Button("Issue")
408
- mindmap_button = gr.Button("Mindmap")
409
- keywords_button = gr.Button("Keywords")
410
- dynamics_button = gr.Button("Dynamics")
411
- complaint_button = gr.Button("Main Demands")
412
- concept_button = gr.Button("Case Conceptualization")
413
- highlight_button = gr.Button("Highlights")
414
- plan_button = gr.Button("Follow-up Plan")
415
 
416
  with gr.Column(scale=2):
417
  system_in_txt = gr.Textbox(lines=30, label="Output Text:")
@@ -421,7 +420,7 @@ with gr.Blocks(css="#chatbot{height:350px} .overflow-y-auto{height:600px}") as d
421
  mindmap_button.click(fn=predict_mindmap, inputs=[password_in_txt, user_in_file], outputs=[system_in_txt])
422
  keywords_button.click(fn=predict_keywords, inputs=[password_in_txt, user_in_file], outputs=[system_in_txt])
423
  dynamics_button.click(fn=predict_dynamics, inputs=[password_in_txt, user_in_file], outputs=[system_in_txt])
424
- complaint_button.click(fn=predict_complaint, inputs=[password_in_txt, user_in_file], outputs=[system_in_txt])
425
  concept_button.click(fn=predict_concept, inputs=[password_in_txt, user_in_file], outputs=[system_in_txt])
426
  highlight_button.click(fn=predict_highlight, inputs=[password_in_txt, user_in_file], outputs=[system_in_txt])
427
  plan_button.click(fn=predict_plan, inputs=[password_in_txt, user_in_file], outputs=[system_in_txt])
 
404
  with gr.Column(scale=1, min_width=50):
405
  user_in_file = gr.File(label="Upload File")
406
  #submit_button = gr.Button("Submit")
407
+ issue_button = gr.Button("��ѯ����")
408
+ mindmap_button = gr.Button("˼ά��ͼ")
409
+ keywords_button = gr.Button("��ѯ�ؼ���")
410
+ dynamics_button = gr.Button("��̸��̬")
411
+ concept_button = gr.Button("�������")
412
+ highlight_button = gr.Button("�Ի�����")
413
+ plan_button = gr.Button("�����ƻ�")
 
414
 
415
  with gr.Column(scale=2):
416
  system_in_txt = gr.Textbox(lines=30, label="Output Text:")
 
420
  mindmap_button.click(fn=predict_mindmap, inputs=[password_in_txt, user_in_file], outputs=[system_in_txt])
421
  keywords_button.click(fn=predict_keywords, inputs=[password_in_txt, user_in_file], outputs=[system_in_txt])
422
  dynamics_button.click(fn=predict_dynamics, inputs=[password_in_txt, user_in_file], outputs=[system_in_txt])
423
+ ##complaint_button.click(fn=predict_complaint, inputs=[password_in_txt, user_in_file], outputs=[system_in_txt])
424
  concept_button.click(fn=predict_concept, inputs=[password_in_txt, user_in_file], outputs=[system_in_txt])
425
  highlight_button.click(fn=predict_highlight, inputs=[password_in_txt, user_in_file], outputs=[system_in_txt])
426
  plan_button.click(fn=predict_plan, inputs=[password_in_txt, user_in_file], outputs=[system_in_txt])