修改部分文字
This commit is contained in:
parent
373895b773
commit
0b4e562b96
@ -137,7 +137,7 @@ def convert_to_docx(text):
|
|||||||
with gr.Blocks() as iface:
|
with gr.Blocks() as iface:
|
||||||
gr.Markdown("# 大模型工具集")
|
gr.Markdown("# 大模型工具集")
|
||||||
with gr.Tabs():
|
with gr.Tabs():
|
||||||
with gr.TabItem("处理并转写"):
|
with gr.TabItem("音频转写"):
|
||||||
with gr.Row():
|
with gr.Row():
|
||||||
audio_input = gr.Audio(type="filepath", label="上传音频文件")
|
audio_input = gr.Audio(type="filepath", label="上传音频文件")
|
||||||
with gr.Column():
|
with gr.Column():
|
||||||
@ -153,7 +153,7 @@ with gr.Blocks() as iface:
|
|||||||
process_button.click(process_audio, inputs=[audio_input, offset_input, duration_input], outputs=output_file)
|
process_button.click(process_audio, inputs=[audio_input, offset_input, duration_input], outputs=output_file)
|
||||||
direct_transcribe_button.click(direct_transcribe, inputs=[audio_input, offset_input, duration_input],
|
direct_transcribe_button.click(direct_transcribe, inputs=[audio_input, offset_input, duration_input],
|
||||||
outputs=output_file)
|
outputs=output_file)
|
||||||
with gr.TabItem("批量处理"):
|
with gr.TabItem("音频批量转写"):
|
||||||
with gr.Row():
|
with gr.Row():
|
||||||
link_upload = gr.HTML(value='<a href="https://webd.willking.tech" target="_blank">点击上传文件</a>')
|
link_upload = gr.HTML(value='<a href="https://webd.willking.tech" target="_blank">点击上传文件</a>')
|
||||||
with gr.Row():
|
with gr.Row():
|
||||||
@ -171,8 +171,8 @@ with gr.Blocks() as iface:
|
|||||||
|
|
||||||
batch_process_button.click(batch_transcribe, outputs=batch_output_file)
|
batch_process_button.click(batch_transcribe, outputs=batch_output_file)
|
||||||
|
|
||||||
with gr.Tab("Markdown 转 DOCX"):
|
with gr.Tab("Markdown 转 Word"):
|
||||||
gr.Markdown("## Markdown 转 DOCX 转换器")
|
gr.Markdown("## Markdown 转 Word 转换器")
|
||||||
with gr.Row():
|
with gr.Row():
|
||||||
text_input = gr.Textbox(lines=10, placeholder="请在此输入 Markdown 内容...")
|
text_input = gr.Textbox(lines=10, placeholder="请在此输入 Markdown 内容...")
|
||||||
with gr.Row():
|
with gr.Row():
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user