tiya1012 commited on
Commit
cd3ffba
·
verified ·
1 Parent(s): 5cb27c5

delete app.py.html

Browse files
Files changed (1) hide show
  1. app.py.html +0 -78
app.py.html DELETED
@@ -1,78 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="th">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>PDPA RAG Chatbot - โดย Gradio</title>
7
- <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@300;400;500;700&display=swap" rel="stylesheet">
8
- <style>
9
- body {
10
- font-family: 'IBM Plex Sans Thai', Arial, sans-serif;
11
- margin: 0;
12
- padding: 0;
13
- background-color: #e9ecef; /* Lighter background */
14
- display: flex;
15
- justify-content: center;
16
- align-items: center;
17
- min-height: 100vh;
18
- flex-direction: column;
19
- color: #333;
20
- }
21
- .container {
22
- width: 90%;
23
- max-width: 1000px; /* Increased max-width for a wider layout */
24
- background-color: #ffffff;
25
- border-radius: 12px;
26
- box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* Stronger shadow */
27
- overflow: hidden;
28
- margin-bottom: 25px;
29
- text-align: center;
30
- padding: 30px;
31
- }
32
- h1 {
33
- color: #28a745; /* Green for main title */
34
- margin-bottom: 15px;
35
- font-size: 2.5em; /* Larger title */
36
- font-weight: 700;
37
- }
38
- p {
39
- color: #555;
40
- line-height: 1.7;
41
- font-size: 1.1em;
42
- margin-bottom: 20px;
43
- }
44
- .chatbot-frame {
45
- border: none; /* Remove iframe border */
46
- width: 100%;
47
- height: 750px; /* Adjust height as needed, slightly taller */
48
- display: block;
49
- margin-top: 30px;
50
- border-radius: 10px; /* Slightly rounded corners for the iframe */
51
- box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow for the frame */
52
- }
53
- footer {
54
- margin-top: 30px;
55
- color: #777;
56
- font-size: 0.95em;
57
- }
58
- </style>
59
- </head>
60
- <body>
61
- <div class="container">
62
- <h1>ยินดีต้อนรับสู่ PDPA RAG Chatbot!</h1>
63
- <p>คุณสามารถสอบถามข้อมูลเกี่ยวกับพระราชบัญญัติคุ้มครองข้อมูลส่วนบุคคล (PDPA) ของประเทศไทยได้ที่นี่</p>
64
- <p>บอทนี้ได้รับการพัฒนาด้วยโมเดล Typhoon-v2.1-12b-instruct และใช้เทคนิค RAG (Retrieval-Augmented Generation) จากคู่มือ PDPA เพื่อให้ข้อมูลที่แม่นยำและเป็นปัจจุบัน</p>
65
-
66
- <!-- Gradio Chatbot Embedded Here -->
67
- <iframe
68
- src="http://127.0.0.1:7860" <!-- **สำคัญ:** เปลี่ยน URL นี้เป็น URL ที่ Gradio แสดงในคอนโซลของคุณเมื่อรันสคริปต์ Python -->
69
- class="chatbot-frame"
70
- allow="microphone"
71
- title="PDPA Chatbot powered by Gradio"
72
- ></iframe>
73
- </div>
74
- <footer>
75
- &copy; 2025 PDPA Chatbot Project. All rights reserved.
76
- </footer>
77
- </body>
78
- </html>