Skip to content

Commit 3744bb8

Browse files
WenjiaoYuepre-commit-ci[bot]chensuyueNeoZhangJianyuarthw
authored
Fix docSum ui error in accessing parsed files (#1079)
Signed-off-by: Xinyao Wang <xinyao.wang@intel.com> Signed-off-by: ZePan110 <ze.pan@intel.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: chen, suyue <suyue.chen@intel.com> Co-authored-by: Neo Zhang Jianyu <jianyu.zhang@intel.com> Co-authored-by: ZhangJianyu <zhang.jianyu@outlook.com> Co-authored-by: XinyaoWa <xinyao.wang@intel.com> Co-authored-by: ZePan110 <ze.pan@intel.com>
1 parent 82801d0 commit 3744bb8

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

DocSum/docker_compose/intel/hpu/gaudi/compose.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ services:
88
ports:
99
- "8008:80"
1010
environment:
11+
HABANA_VISIBLE_DEVICES: all
1112
no_proxy: ${no_proxy}
1213
http_proxy: ${http_proxy}
1314
https_proxy: ${https_proxy}

DocSum/tests/test_compose_on_gaudi.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ function main() {
169169

170170
validate_microservices
171171
validate_megaservice
172-
#validate_frontend
172+
validate_frontend
173173

174174
stop_docker
175175
echo y | docker system prune

DocSum/tests/test_compose_on_xeon.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ function main() {
168168

169169
validate_microservices
170170
validate_megaservice
171-
#validate_frontend
171+
validate_frontend
172172

173173
stop_docker
174174
echo y | docker system prune

DocSum/ui/svelte/src/lib/shared/Network.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ export async function fetchTextStream(query: string | Blob, params: string, file
2020
const url = `${DOC_BASE_URL}`; // Ensure the URL is constructed correctly
2121
const formData = new FormData();
2222

23-
if (params === "doc_id" && file) {
23+
if (!file) {
24+
file = new Blob([""], { type: "text/plain" });
25+
fileName = "empty.txt";
26+
}
27+
28+
if (params === "doc_id") {
2429
formData.append("files", file, fileName);
2530
formData.append("messages", query);
2631
} else if (params === "text") {

0 commit comments

Comments
 (0)