Spaces:
Runtime error
Runtime error
edit ui
Browse files- .gitignore +2 -0
- arxivdb/chroma +0 -0
- chat/templates/index.html +39 -5
.gitignore
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
models/
|
2 |
__pycache__/
|
|
|
|
|
3 |
*.pyc
|
4 |
apikey.txt
|
5 |
hotfix.ipynb
|
|
|
1 |
models/
|
2 |
__pycache__/
|
3 |
+
arxiv_venv/
|
4 |
+
|
5 |
*.pyc
|
6 |
apikey.txt
|
7 |
hotfix.ipynb
|
arxivdb/chroma
ADDED
File without changes
|
chat/templates/index.html
CHANGED
@@ -6,6 +6,30 @@
|
|
6 |
<meta charset="UTF-8">
|
7 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
8 |
<script src="https://cdn.tailwindcss.com"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
</head>
|
10 |
<script>
|
11 |
function textAreaAdjust(element) {
|
@@ -13,16 +37,25 @@
|
|
13 |
element.style.height = (25+element.scrollHeight)+"px";
|
14 |
}
|
15 |
</script>
|
16 |
-
<body
|
17 |
-
<div
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
<div class="flex flex-col h-full">
|
20 |
<!-- head -->
|
21 |
<div class="flex flex-row justify-between items-center p-4 select-none">
|
22 |
<h1 class="text-2xl font-medium text-center">
|
23 |
-
TinyChat
|
24 |
-
showConfig ? "Config" : ""
|
25 |
-
}}
|
26 |
</h1>
|
27 |
<div>
|
28 |
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"
|
@@ -224,6 +257,7 @@
|
|
224 |
},
|
225 |
}).mount('#app')
|
226 |
</script>
|
|
|
227 |
</body>
|
228 |
|
229 |
</html>
|
|
|
6 |
<meta charset="UTF-8">
|
7 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
8 |
<script src="https://cdn.tailwindcss.com"></script>
|
9 |
+
<style>
|
10 |
+
body {
|
11 |
+
margin: 0;
|
12 |
+
padding: 0;
|
13 |
+
background-color: #2A2A2A;
|
14 |
+
color: white;
|
15 |
+
}
|
16 |
+
.container {
|
17 |
+
display: flex;
|
18 |
+
height: 100vh;
|
19 |
+
}
|
20 |
+
.left-column {
|
21 |
+
width: 25%;
|
22 |
+
background-color: #3A3A3A;
|
23 |
+
padding: 20px;
|
24 |
+
overflow-y: auto;
|
25 |
+
}
|
26 |
+
.right-column {
|
27 |
+
width: 75%;
|
28 |
+
background-color: #2E2E2E;
|
29 |
+
padding: 20px;
|
30 |
+
overflow-y: auto;
|
31 |
+
}
|
32 |
+
</style>
|
33 |
</head>
|
34 |
<script>
|
35 |
function textAreaAdjust(element) {
|
|
|
37 |
element.style.height = (25+element.scrollHeight)+"px";
|
38 |
}
|
39 |
</script>
|
40 |
+
<body>
|
41 |
+
<div class="container">
|
42 |
+
<div class="left-column">
|
43 |
+
<h2 class="text-xl font-medium mb-4">Lịch sử đoạn chat</h2>
|
44 |
+
<ul class="list-none">
|
45 |
+
<li class="p-2 bg-[#4A4A4A] mb-2 rounded cursor-pointer">Đoạn chat 1</li>
|
46 |
+
<li class="p-2 bg-[#4A4A4A] mb-2 rounded cursor-pointer">Đoạn chat 2</li>
|
47 |
+
<li class="p-2 bg-[#4A4A4A] mb-2 rounded cursor-pointer">Đoạn chat 3</li>
|
48 |
+
<!-- Thêm các đoạn chat khác tại đây -->
|
49 |
+
</ul>
|
50 |
+
</div>
|
51 |
+
|
52 |
+
<div id="app" class="right-column flex flex-col md:mx-auto mx-0 bg-[#2E2E2E] w-full h-screen">
|
53 |
|
54 |
<div class="flex flex-col h-full">
|
55 |
<!-- head -->
|
56 |
<div class="flex flex-row justify-between items-center p-4 select-none">
|
57 |
<h1 class="text-2xl font-medium text-center">
|
58 |
+
TinyChat
|
|
|
|
|
59 |
</h1>
|
60 |
<div>
|
61 |
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"
|
|
|
257 |
},
|
258 |
}).mount('#app')
|
259 |
</script>
|
260 |
+
</div>
|
261 |
</body>
|
262 |
|
263 |
</html>
|