add support for csv file

This commit is contained in:
imClumsyPanda 2023-06-07 22:20:47 +08:00
parent 8b7c2e417c
commit 89b986c3bc
1 changed files with 1 additions and 1 deletions

View File

@ -326,7 +326,7 @@ with gr.Blocks(css=block_css, theme=gr.themes.Default(**default_theme_args)) as
interactive=True, visible=True)
with gr.Tab("上传文件"):
files = gr.File(label="添加文件",
file_types=['.txt', '.md', '.docx', '.pdf', '.png', '.jpg'],
file_types=['.txt', '.md', '.docx', '.pdf', '.png', '.jpg', ".csv"],
file_count="multiple",
show_label=False)
load_file_button = gr.Button("上传文件并加载知识库")