修改默认值
Browse files
app.py
CHANGED
|
@@ -369,7 +369,7 @@ if __name__ == '__main__':
|
|
| 369 |
visible=False
|
| 370 |
)
|
| 371 |
column_content = gr.Textbox(
|
| 372 |
-
value="",
|
| 373 |
placeholder="Column name of content in the input file. If exists multiple levels, use '.' separate",
|
| 374 |
label="column_content",
|
| 375 |
visible=False
|
|
@@ -388,7 +388,7 @@ if __name__ == '__main__':
|
|
| 388 |
# 修改输出组件部分,使用Tabs
|
| 389 |
with gr.Tabs():
|
| 390 |
with gr.Tab("Result Summary"):
|
| 391 |
-
summary_output = gr.Textbox(label="summary",
|
| 392 |
with gr.Tab("Result Detail"):
|
| 393 |
detail_output = gr.JSON(label="detail", max_height=800) # 使用JSON组件来更好地展示结构化数据
|
| 394 |
|
|
|
|
| 369 |
visible=False
|
| 370 |
)
|
| 371 |
column_content = gr.Textbox(
|
| 372 |
+
value="content",
|
| 373 |
placeholder="Column name of content in the input file. If exists multiple levels, use '.' separate",
|
| 374 |
label="column_content",
|
| 375 |
visible=False
|
|
|
|
| 388 |
# 修改输出组件部分,使用Tabs
|
| 389 |
with gr.Tabs():
|
| 390 |
with gr.Tab("Result Summary"):
|
| 391 |
+
summary_output = gr.Textbox(label="summary", max_height=800)
|
| 392 |
with gr.Tab("Result Detail"):
|
| 393 |
detail_output = gr.JSON(label="detail", max_height=800) # 使用JSON组件来更好地展示结构化数据
|
| 394 |
|