From edf9d09ef8cc78c382e1863277aa7a9f89304964 Mon Sep 17 00:00:00 2001 From: Wenjie Zhang Date: Sat, 28 Sep 2024 00:47:45 +0800 Subject: [PATCH] support docx 2txt --- requirements.txt | 3 ++- web/src/components/TextChunkingComponent.vue | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/requirements.txt b/requirements.txt index 0c831b2c..23d2e274 100644 --- a/requirements.txt +++ b/requirements.txt @@ -18,4 +18,5 @@ tqdm>=4.66.1 zhipuai>=2.1.2 neo4j>=5.22.0 sentencepiece==0.1.99 -llama-index-readers-file \ No newline at end of file +llama-index-readers-file +docx2txt \ No newline at end of file diff --git a/web/src/components/TextChunkingComponent.vue b/web/src/components/TextChunkingComponent.vue index dc1d5811..f9e46b30 100644 --- a/web/src/components/TextChunkingComponent.vue +++ b/web/src/components/TextChunkingComponent.vue @@ -11,17 +11,17 @@ @finish="chunkText" > - + - + - Chunk Text + Chunk Text @@ -73,7 +73,7 @@ import { message } from 'ant-design-vue' const text = ref(''); const state = reactive({ - loading: true, + loading: false, uploading: false, useFile: false, })