yammdd commited on
Commit
2bfbdbe
·
verified ·
1 Parent(s): de9df81

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +68 -74
templates/index.html CHANGED
@@ -1,75 +1,69 @@
1
- <!DOCTYPE html>
2
- <html lang="vi">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>VietCorrect AI - Normalization</title>
7
- <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
8
- <link rel="stylesheet" href="/static/style.css">
9
- </head>
10
- <body>
11
-
12
- <div class="main-card">
13
- <!-- Header -->
14
- <div class="card-header">
15
- <h1 class="app-title">CÔNG CỤ CHUẨN HÓA VĂN BẢN</h1>
16
-
17
- <!-- MODEL SELECTION UI (Giao diện chọn model) -->
18
- <div class="mode-switcher">
19
- <label class="mode-option">
20
- <!-- Mặc định checked vào Sửa lỗi, bạn có thể đổi nếu app.py đang chạy model khác -->
21
- <input type="radio" name="modelType" value="correction" checked onchange="handleModeChange()">
22
- <span class="mode-btn">Sửa lỗi chính tả</span>
23
- </label>
24
- <label class="mode-option">
25
- <input type="radio" name="modelType" value="diacritics" onchange="handleModeChange()">
26
- <span class="mode-btn">Thêm dấu</span>
27
- </label>
28
- </div>
29
- </div>
30
-
31
- <!-- Input / Output Section -->
32
- <div class="editor-section">
33
- <div class="text-box-wrapper">
34
- <div class="box-label">Văn bản gốc</div>
35
- <textarea id="inputText" placeholder="Nhập văn bản vào đây..."></textarea>
36
- </div>
37
-
38
- <div class="text-box-wrapper">
39
- <div class="box-label">Kết quả xử lý</div>
40
- <textarea id="outputText" readonly placeholder="Kết quả sẽ hiện ở đây..."></textarea>
41
- </div>
42
- </div>
43
-
44
- <!-- Button Section -->
45
- <div class="action-section">
46
- <button id="submitBtn" onclick="correctText()">
47
- <span>THỰC HIỆN XỬ LÝ</span>
48
- </button>
49
- <div id="loading">
50
- <div class="spinner"></div> Đang xử lý...
51
- </div>
52
- </div>
53
-
54
- <!-- Analysis Section -->
55
- <div id="analysisSection" class="analysis-section">
56
- <h2 class="section-title">PHÂN TÍCH THAY ĐỔI</h2>
57
- <div id="highlightedText" class="highlight-box"></div>
58
- <div class="table-wrapper">
59
- <table>
60
- <thead>
61
- <tr>
62
- <th>Trước khi sửa</th>
63
- <th>Sau khi sửa</th>
64
- <th style="width: 150px;">Độ tin cậy</th>
65
- </tr>
66
- </thead>
67
- <tbody id="comparisonTableBody"></tbody>
68
- </table>
69
- </div>
70
- </div>
71
- </div>
72
-
73
- <script src="/static/script.js"></script>
74
- </body>
75
  </html>
 
1
+ <!DOCTYPE html>
2
+ <html lang="vi">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>VietCorrect AI - Normalization</title>
7
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
8
+ <link rel="stylesheet" href="/static/style.css">
9
+ </head>
10
+ <body>
11
+
12
+ <div class="main-card">
13
+ <div class="card-header">
14
+ <h1 class="app-title">CÔNG CỤ CHUẨN HÓA VĂN BẢN</h1>
15
+
16
+ <div class="mode-switcher">
17
+ <label class="mode-option">
18
+ <input type="radio" name="modelType" value="correction" checked onchange="handleModeChange()">
19
+ <span class="mode-btn">Sửa lỗi chính tả</span>
20
+ </label>
21
+ <label class="mode-option">
22
+ <input type="radio" name="modelType" value="diacritics" onchange="handleModeChange()">
23
+ <span class="mode-btn">Thêm dấu</span>
24
+ </label>
25
+ </div>
26
+ </div>
27
+
28
+ <div class="editor-section">
29
+ <div class="text-box-wrapper">
30
+ <div class="box-label">Văn bản gốc</div>
31
+ <textarea id="inputText" placeholder="Nhập văn bản vào đây..."></textarea>
32
+ </div>
33
+
34
+ <div class="text-box-wrapper">
35
+ <div class="box-label">Kết quả xử lý</div>
36
+ <textarea id="outputText" readonly placeholder="Kết quả sẽ hiện ở đây..."></textarea>
37
+ </div>
38
+ </div>
39
+
40
+ <div class="action-section">
41
+ <button id="submitBtn" onclick="correctText()">
42
+ <span>THỰC HIỆN XỬ LÝ</span>
43
+ </button>
44
+ <div id="loading">
45
+ <div class="spinner"></div> Đang xử lý...
46
+ </div>
47
+ </div>
48
+
49
+ <div id="analysisSection" class="analysis-section">
50
+ <h2 class="section-title">PHÂN TÍCH THAY ĐỔI</h2>
51
+ <div id="highlightedText" class="highlight-box"></div>
52
+ <div class="table-wrapper">
53
+ <table>
54
+ <thead>
55
+ <tr>
56
+ <th>Trước khi sửa</th>
57
+ <th>Sau khi sửa</th>
58
+ <th style="width: 150px;">Độ tin cậy</th>
59
+ </tr>
60
+ </thead>
61
+ <tbody id="comparisonTableBody"></tbody>
62
+ </table>
63
+ </div>
64
+ </div>
65
+ </div>
66
+
67
+ <script src="/static/script.js"></script>
68
+ </body>
 
 
 
 
 
 
69
  </html>