From 045beb6b7054094a687277458e7f3d46d8219d99 Mon Sep 17 00:00:00 2001
From: arkohut <39525455+arkohut@users.noreply.github.com>
Date: Fri, 11 Oct 2024 00:04:17 +0800
Subject: [PATCH] fix(web): style update
---
memos/plugins/ocr/ppocr.yaml | 1 +
web/src/lib/Figure.svelte | 16 ++++++++--------
web/src/lib/OCRTable.svelte | 33 ++++++++++++++++++---------------
3 files changed, 27 insertions(+), 23 deletions(-)
diff --git a/memos/plugins/ocr/ppocr.yaml b/memos/plugins/ocr/ppocr.yaml
index 5a93b55..3945096 100644
--- a/memos/plugins/ocr/ppocr.yaml
+++ b/memos/plugins/ocr/ppocr.yaml
@@ -6,6 +6,7 @@ Global:
print_verbose: false
min_height: 30
width_height_ratio: 40
+ use_space_char: true
Det:
use_cuda: false
diff --git a/web/src/lib/Figure.svelte b/web/src/lib/Figure.svelte
index 0a0333d..c931c57 100644
--- a/web/src/lib/Figure.svelte
+++ b/web/src/lib/Figure.svelte
@@ -91,21 +91,21 @@
@@ -187,11 +187,11 @@
-
diff --git a/web/src/lib/OCRTable.svelte b/web/src/lib/OCRTable.svelte
index 3530382..1a758ff 100644
--- a/web/src/lib/OCRTable.svelte
+++ b/web/src/lib/OCRTable.svelte
@@ -4,19 +4,22 @@
*/
export let ocrData = [];
-
-
-
- Text |
- Score |
-
-
-
- {#each ocrData as { dt_boxes, rec_txt, score }}
-
- {rec_txt} |
- {score.toFixed(3)} |
+
+
+
+
+
+ Text |
+ Score |
- {/each}
-
-
\ No newline at end of file
+
+
+ {#each ocrData as { dt_boxes, rec_txt, score }}
+
+ {rec_txt} |
+ {score.toFixed(3)} |
+
+ {/each}
+
+
+
\ No newline at end of file