add support for csv file
This commit is contained in:
parent
8b7c2e417c
commit
89b986c3bc
2
webui.py
2
webui.py
|
|
@ -326,7 +326,7 @@ with gr.Blocks(css=block_css, theme=gr.themes.Default(**default_theme_args)) as
|
||||||
interactive=True, visible=True)
|
interactive=True, visible=True)
|
||||||
with gr.Tab("上传文件"):
|
with gr.Tab("上传文件"):
|
||||||
files = gr.File(label="添加文件",
|
files = gr.File(label="添加文件",
|
||||||
file_types=['.txt', '.md', '.docx', '.pdf', '.png', '.jpg'],
|
file_types=['.txt', '.md', '.docx', '.pdf', '.png', '.jpg', ".csv"],
|
||||||
file_count="multiple",
|
file_count="multiple",
|
||||||
show_label=False)
|
show_label=False)
|
||||||
load_file_button = gr.Button("上传文件并加载知识库")
|
load_file_button = gr.Button("上传文件并加载知识库")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue