Skip to content

Commit

Permalink
modify docSum output (#55)
Browse files Browse the repository at this point in the history
Signed-off-by: Yue, Wenjiao <[email protected]>
  • Loading branch information
WenjiaoYue authored Apr 8, 2024
1 parent 9521623 commit 18e2e6f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 13 deletions.
1 change: 1 addition & 0 deletions DocSum/ui/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BASIC_URL = 'http://x.x.x.x:yyyy'
12 changes: 3 additions & 9 deletions DocSum/ui/.gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
.DS_Store
node_modules
*/node_modules
/build
/dist
/.svelte-kit
/package
.env
.env.*
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
*/.svelte-kit

4 changes: 2 additions & 2 deletions DocSum/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"autoprefixer": "^10.4.16",
"flowbite": "^2.3.0",
"flowbite-svelte": "^0.44.24",
"flowbite-svelte-icons": "^1.4.5",
"flowbite-svelte": "^0.38.5",
"flowbite-svelte-icons": "^1.4.0",
"postcss": "^8.4.32",
"postcss-load-config": "^5.0.2",
"publint": "^0.1.9",
Expand Down
2 changes: 1 addition & 1 deletion DocSum/ui/src/lib/doc.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<script lang="ts">
import { Button, Helper, Input, Label, Modal } from "flowbite-svelte";
import { ExclamationCircleOutline } from "flowbite-svelte-icons";
import DropFile from "./DropFile.svelte";
import DropFile from "./dropFile.svelte";
import SpinLoading from "./assets/spinLoading.svelte";
import { kb_id, loading } from "./shared/Store.js";
import { Textarea } from "flowbite-svelte";
Expand Down
2 changes: 1 addition & 1 deletion DocSum/ui/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
logs.forEach((log: { op: string; path: string; value: any }) => {
if (log.op === "add") {
if (
log.path.endsWith("/streamed_output/-") && typeof log.value === "string"
log.value !== "</s>" && log.path.endsWith("/streamed_output/-") && log.path.length > "/streamed_output/-".length
) {
messages += log.value;
scrollToBottom(scrollToDiv)
Expand Down

0 comments on commit 18e2e6f

Please sign in to comment.