优化界面
This commit is contained in:
parent
3f72706e24
commit
d0f61fcb2a
@ -339,13 +339,13 @@ with gr.Blocks() as iface:
|
||||
gr.Markdown("## OCR 图片批量识别")
|
||||
with gr.Row():
|
||||
with gr.Column():
|
||||
input_files = gr.File(file_count="multiple", label="Upload Images")
|
||||
input_files = gr.File(file_count="multiple", label="上传图片")
|
||||
with gr.Column():
|
||||
output_file = gr.File(label="Download OCR Results")
|
||||
output_file = gr.File(label="下载识别结果")
|
||||
with gr.Row():
|
||||
process_button = gr.Button("Process Images")
|
||||
process_button = gr.Button("开始识别")
|
||||
with gr.Row():
|
||||
user_query_text = gr.Textbox(placeholder="输入额外的要求")
|
||||
user_query_text = gr.Textbox(label="额外识别要求", placeholder="输入额外的要求")
|
||||
|
||||
# 绑定按钮点击事件
|
||||
process_button.click(batch_ocr, inputs=[input_files, user_query_text], outputs=output_file)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user