From 3c9de34870751106105c868831bee962c4e89c80 Mon Sep 17 00:00:00 2001 From: shijinpjlab Date: Thu, 11 Dec 2025 14:01:27 +0800 Subject: [PATCH] feat: gradio --- app_gradio/app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app_gradio/app.py b/app_gradio/app.py index fd04bb37..b56d0f70 100644 --- a/app_gradio/app.py +++ b/app_gradio/app.py @@ -369,7 +369,7 @@ def get_data_column_mapping(): visible=False ) column_content = gr.Textbox( - value="", + value="content", placeholder="Column name of content in the input file. If exists multiple levels, use '.' separate", label="column_content", visible=False @@ -388,7 +388,7 @@ def get_data_column_mapping(): # 修改输出组件部分,使用Tabs with gr.Tabs(): with gr.Tab("Result Summary"): - summary_output = gr.Textbox(label="summary", max_lines=50) + summary_output = gr.Textbox(label="summary", max_height=800) with gr.Tab("Result Detail"): detail_output = gr.JSON(label="detail", max_height=800) # 使用JSON组件来更好地展示结构化数据 @@ -438,4 +438,4 @@ def get_data_column_mapping(): ) # 启动界面 - demo.launch(server_port=7861, share=True) + demo.launch(share=True)