Skip to content

Commit 2eb2fb7

Browse files
authored
Merge pull request #280 from shijinpjlab/main_1211
feat: gradio
2 parents e3fd796 + 3c9de34 commit 2eb2fb7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app_gradio/app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ def get_data_column_mapping():
369369
visible=False
370370
)
371371
column_content = gr.Textbox(
372-
value="",
372+
value="content",
373373
placeholder="Column name of content in the input file. If exists multiple levels, use '.' separate",
374374
label="column_content",
375375
visible=False
@@ -388,7 +388,7 @@ def get_data_column_mapping():
388388
# 修改输出组件部分,使用Tabs
389389
with gr.Tabs():
390390
with gr.Tab("Result Summary"):
391-
summary_output = gr.Textbox(label="summary", max_lines=50)
391+
summary_output = gr.Textbox(label="summary", max_height=800)
392392
with gr.Tab("Result Detail"):
393393
detail_output = gr.JSON(label="detail", max_height=800) # 使用JSON组件来更好地展示结构化数据
394394

@@ -438,4 +438,4 @@ def get_data_column_mapping():
438438
)
439439

440440
# 启动界面
441-
demo.launch(server_port=7861, share=True)
441+
demo.launch(share=True)

0 commit comments

Comments
 (0)