chen666-666 commited on
Commit
8c073c8
·
verified ·
1 Parent(s): a569198

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -726,14 +726,17 @@ with gr.Blocks(css="""
726
  btn = gr.Button("开始分析")
727
  out1 = gr.Textbox(label="识别实体")
728
  out2 = gr.Textbox(label="识别关系")
729
- out3 = gr.Markdown(label="知识图谱")
730
  out4 = gr.Textbox(label="耗时")
731
  btn.click(fn=process_text, inputs=[input_text, model_type], outputs=[out1, out2, out3, out4])
732
 
733
  with gr.Tab("🗂 文件分析"):
734
  file_input = gr.File(file_types=[".txt", ".json"])
735
  file_btn = gr.Button("上传并分析")
736
- fout1, fout2, fout3, fout4 = gr.Textbox(), gr.Textbox(), gr.Textbox(), gr.Textbox()
 
 
 
737
  file_btn.click(fn=process_file, inputs=[file_input, model_type], outputs=[fout1, fout2, fout3, fout4])
738
 
739
  with gr.Tab("📊 模型评估"):
 
726
  btn = gr.Button("开始分析")
727
  out1 = gr.Textbox(label="识别实体")
728
  out2 = gr.Textbox(label="识别关系")
729
+ out3 = gr.HTML(label="知识图谱")
730
  out4 = gr.Textbox(label="耗时")
731
  btn.click(fn=process_text, inputs=[input_text, model_type], outputs=[out1, out2, out3, out4])
732
 
733
  with gr.Tab("🗂 文件分析"):
734
  file_input = gr.File(file_types=[".txt", ".json"])
735
  file_btn = gr.Button("上传并分析")
736
+ fout1 = gr.Textbox()
737
+ fout2 = gr.Textbox()
738
+ fout3 = gr.HTML()
739
+ fout4 = gr.Textbox()
740
  file_btn.click(fn=process_file, inputs=[file_input, model_type], outputs=[fout1, fout2, fout3, fout4])
741
 
742
  with gr.Tab("📊 模型评估"):