Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- README.md +5 -5
- __pycache__/app.cpython-311.pyc +0 -0
- app.py +5 -2
- requirements.txt +1 -1
- src/backend/gradio_gptchatbot/templates/component/index.js +0 -0
- src/backend/gradio_gptchatbot/templates/component/style.css +0 -0
- src/demo/app.py +5 -2
- src/frontend/package-lock.json +127 -127
- src/frontend/package.json +6 -6
- src/frontend/shared/ChatBot.svelte +58 -1
- src/pyproject.toml +8 -5
README.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
|
2 |
---
|
3 |
-
tags: [gradio-custom-component,gradio-template-Chatbot
|
4 |
-
title: gradio_gptchatbot V0.0.
|
5 |
-
colorFrom:
|
6 |
-
colorTo:
|
7 |
sdk: docker
|
8 |
pinned: false
|
9 |
license: apache-2.0
|
@@ -12,6 +12,6 @@ license: apache-2.0
|
|
12 |
|
13 |
# Name: gradio_gptchatbot
|
14 |
|
15 |
-
Description:
|
16 |
|
17 |
Install with: pip install gradio_gptchatbot
|
|
|
1 |
|
2 |
---
|
3 |
+
tags: [gradio-custom-component,gradio-template-Chatbot]
|
4 |
+
title: gradio_gptchatbot V0.0.1
|
5 |
+
colorFrom: indigo
|
6 |
+
colorTo: pink
|
7 |
sdk: docker
|
8 |
pinned: false
|
9 |
license: apache-2.0
|
|
|
12 |
|
13 |
# Name: gradio_gptchatbot
|
14 |
|
15 |
+
Description: Python library for easily interacting with trained machine learning models
|
16 |
|
17 |
Install with: pip install gradio_gptchatbot
|
__pycache__/app.cpython-311.pyc
ADDED
Binary file (1.04 kB). View file
|
|
app.py
CHANGED
@@ -3,12 +3,15 @@ import gradio as gr
|
|
3 |
from gradio_gptchatbot import GPTChatbot
|
4 |
|
5 |
|
6 |
-
example =
|
|
|
|
|
|
|
7 |
|
8 |
with gr.Blocks() as demo:
|
9 |
with gr.Row():
|
10 |
GPTChatbot(label="Blank"), # blank component
|
11 |
-
GPTChatbot(value=example, label="Populated"), # populated component
|
12 |
|
13 |
|
14 |
demo.launch()
|
|
|
3 |
from gradio_gptchatbot import GPTChatbot
|
4 |
|
5 |
|
6 |
+
example = [
|
7 |
+
("How do I create a Gradio app?",
|
8 |
+
"You can create a Gradio app by...")
|
9 |
+
]
|
10 |
|
11 |
with gr.Blocks() as demo:
|
12 |
with gr.Row():
|
13 |
GPTChatbot(label="Blank"), # blank component
|
14 |
+
GPTChatbot(value=example, label="Populated", layout="panel"), # populated component
|
15 |
|
16 |
|
17 |
demo.launch()
|
requirements.txt
CHANGED
@@ -1 +1 @@
|
|
1 |
-
gradio_gptchatbot-0.0.
|
|
|
1 |
+
gradio_gptchatbot-0.0.1-py3-none-any.whl
|
src/backend/gradio_gptchatbot/templates/component/index.js
ADDED
The diff for this file is too large to render.
See raw diff
|
|
src/backend/gradio_gptchatbot/templates/component/style.css
ADDED
The diff for this file is too large to render.
See raw diff
|
|
src/demo/app.py
CHANGED
@@ -3,12 +3,15 @@ import gradio as gr
|
|
3 |
from gradio_gptchatbot import GPTChatbot
|
4 |
|
5 |
|
6 |
-
example =
|
|
|
|
|
|
|
7 |
|
8 |
with gr.Blocks() as demo:
|
9 |
with gr.Row():
|
10 |
GPTChatbot(label="Blank"), # blank component
|
11 |
-
GPTChatbot(value=example, label="Populated"), # populated component
|
12 |
|
13 |
|
14 |
demo.launch()
|
|
|
3 |
from gradio_gptchatbot import GPTChatbot
|
4 |
|
5 |
|
6 |
+
example = [
|
7 |
+
("How do I create a Gradio app?",
|
8 |
+
"You can create a Gradio app by...")
|
9 |
+
]
|
10 |
|
11 |
with gr.Blocks() as demo:
|
12 |
with gr.Row():
|
13 |
GPTChatbot(label="Blank"), # blank component
|
14 |
+
GPTChatbot(value=example, label="Populated", layout="panel"), # populated component
|
15 |
|
16 |
|
17 |
demo.launch()
|
src/frontend/package-lock.json
CHANGED
@@ -1,21 +1,21 @@
|
|
1 |
{
|
2 |
"name": "gradio_gptchatbot",
|
3 |
-
"version": "0.4.
|
4 |
"lockfileVersion": 3,
|
5 |
"requires": true,
|
6 |
"packages": {
|
7 |
"": {
|
8 |
"name": "gradio_gptchatbot",
|
9 |
-
"version": "0.4.
|
10 |
"license": "ISC",
|
11 |
"dependencies": {
|
12 |
-
"@gradio/atoms": "0.2.
|
13 |
"@gradio/client": "0.8.1",
|
14 |
-
"@gradio/icons": "0.2.
|
15 |
-
"@gradio/markdown": "0.3.
|
16 |
-
"@gradio/statustracker": "0.3.
|
17 |
"@gradio/theme": "0.2.0",
|
18 |
-
"@gradio/upload": "0.4.
|
19 |
"@gradio/utils": "0.2.0",
|
20 |
"@types/dompurify": "^3.0.2",
|
21 |
"@types/katex": "^0.16.0",
|
@@ -37,9 +37,9 @@
|
|
37 |
}
|
38 |
},
|
39 |
"node_modules/@esbuild/android-arm": {
|
40 |
-
"version": "0.19.
|
41 |
-
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.
|
42 |
-
"integrity": "sha512-
|
43 |
"cpu": [
|
44 |
"arm"
|
45 |
],
|
@@ -52,9 +52,9 @@
|
|
52 |
}
|
53 |
},
|
54 |
"node_modules/@esbuild/android-arm64": {
|
55 |
-
"version": "0.19.
|
56 |
-
"resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.
|
57 |
-
"integrity": "sha512-
|
58 |
"cpu": [
|
59 |
"arm64"
|
60 |
],
|
@@ -67,9 +67,9 @@
|
|
67 |
}
|
68 |
},
|
69 |
"node_modules/@esbuild/android-x64": {
|
70 |
-
"version": "0.19.
|
71 |
-
"resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.
|
72 |
-
"integrity": "sha512-
|
73 |
"cpu": [
|
74 |
"x64"
|
75 |
],
|
@@ -82,9 +82,9 @@
|
|
82 |
}
|
83 |
},
|
84 |
"node_modules/@esbuild/darwin-arm64": {
|
85 |
-
"version": "0.19.
|
86 |
-
"resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.
|
87 |
-
"integrity": "sha512-
|
88 |
"cpu": [
|
89 |
"arm64"
|
90 |
],
|
@@ -97,9 +97,9 @@
|
|
97 |
}
|
98 |
},
|
99 |
"node_modules/@esbuild/darwin-x64": {
|
100 |
-
"version": "0.19.
|
101 |
-
"resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.
|
102 |
-
"integrity": "sha512-
|
103 |
"cpu": [
|
104 |
"x64"
|
105 |
],
|
@@ -112,9 +112,9 @@
|
|
112 |
}
|
113 |
},
|
114 |
"node_modules/@esbuild/freebsd-arm64": {
|
115 |
-
"version": "0.19.
|
116 |
-
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.
|
117 |
-
"integrity": "sha512-
|
118 |
"cpu": [
|
119 |
"arm64"
|
120 |
],
|
@@ -127,9 +127,9 @@
|
|
127 |
}
|
128 |
},
|
129 |
"node_modules/@esbuild/freebsd-x64": {
|
130 |
-
"version": "0.19.
|
131 |
-
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.
|
132 |
-
"integrity": "sha512-
|
133 |
"cpu": [
|
134 |
"x64"
|
135 |
],
|
@@ -142,9 +142,9 @@
|
|
142 |
}
|
143 |
},
|
144 |
"node_modules/@esbuild/linux-arm": {
|
145 |
-
"version": "0.19.
|
146 |
-
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.
|
147 |
-
"integrity": "sha512-
|
148 |
"cpu": [
|
149 |
"arm"
|
150 |
],
|
@@ -157,9 +157,9 @@
|
|
157 |
}
|
158 |
},
|
159 |
"node_modules/@esbuild/linux-arm64": {
|
160 |
-
"version": "0.19.
|
161 |
-
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.
|
162 |
-
"integrity": "sha512-
|
163 |
"cpu": [
|
164 |
"arm64"
|
165 |
],
|
@@ -172,9 +172,9 @@
|
|
172 |
}
|
173 |
},
|
174 |
"node_modules/@esbuild/linux-ia32": {
|
175 |
-
"version": "0.19.
|
176 |
-
"resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.
|
177 |
-
"integrity": "sha512-
|
178 |
"cpu": [
|
179 |
"ia32"
|
180 |
],
|
@@ -187,9 +187,9 @@
|
|
187 |
}
|
188 |
},
|
189 |
"node_modules/@esbuild/linux-loong64": {
|
190 |
-
"version": "0.19.
|
191 |
-
"resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.
|
192 |
-
"integrity": "sha512-
|
193 |
"cpu": [
|
194 |
"loong64"
|
195 |
],
|
@@ -202,9 +202,9 @@
|
|
202 |
}
|
203 |
},
|
204 |
"node_modules/@esbuild/linux-mips64el": {
|
205 |
-
"version": "0.19.
|
206 |
-
"resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.
|
207 |
-
"integrity": "sha512-
|
208 |
"cpu": [
|
209 |
"mips64el"
|
210 |
],
|
@@ -217,9 +217,9 @@
|
|
217 |
}
|
218 |
},
|
219 |
"node_modules/@esbuild/linux-ppc64": {
|
220 |
-
"version": "0.19.
|
221 |
-
"resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.
|
222 |
-
"integrity": "sha512-
|
223 |
"cpu": [
|
224 |
"ppc64"
|
225 |
],
|
@@ -232,9 +232,9 @@
|
|
232 |
}
|
233 |
},
|
234 |
"node_modules/@esbuild/linux-riscv64": {
|
235 |
-
"version": "0.19.
|
236 |
-
"resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.
|
237 |
-
"integrity": "sha512-
|
238 |
"cpu": [
|
239 |
"riscv64"
|
240 |
],
|
@@ -247,9 +247,9 @@
|
|
247 |
}
|
248 |
},
|
249 |
"node_modules/@esbuild/linux-s390x": {
|
250 |
-
"version": "0.19.
|
251 |
-
"resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.
|
252 |
-
"integrity": "sha512-
|
253 |
"cpu": [
|
254 |
"s390x"
|
255 |
],
|
@@ -262,9 +262,9 @@
|
|
262 |
}
|
263 |
},
|
264 |
"node_modules/@esbuild/linux-x64": {
|
265 |
-
"version": "0.19.
|
266 |
-
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.
|
267 |
-
"integrity": "sha512-
|
268 |
"cpu": [
|
269 |
"x64"
|
270 |
],
|
@@ -277,9 +277,9 @@
|
|
277 |
}
|
278 |
},
|
279 |
"node_modules/@esbuild/netbsd-x64": {
|
280 |
-
"version": "0.19.
|
281 |
-
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.
|
282 |
-
"integrity": "sha512-
|
283 |
"cpu": [
|
284 |
"x64"
|
285 |
],
|
@@ -292,9 +292,9 @@
|
|
292 |
}
|
293 |
},
|
294 |
"node_modules/@esbuild/openbsd-x64": {
|
295 |
-
"version": "0.19.
|
296 |
-
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.
|
297 |
-
"integrity": "sha512-
|
298 |
"cpu": [
|
299 |
"x64"
|
300 |
],
|
@@ -307,9 +307,9 @@
|
|
307 |
}
|
308 |
},
|
309 |
"node_modules/@esbuild/sunos-x64": {
|
310 |
-
"version": "0.19.
|
311 |
-
"resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.
|
312 |
-
"integrity": "sha512-
|
313 |
"cpu": [
|
314 |
"x64"
|
315 |
],
|
@@ -322,9 +322,9 @@
|
|
322 |
}
|
323 |
},
|
324 |
"node_modules/@esbuild/win32-arm64": {
|
325 |
-
"version": "0.19.
|
326 |
-
"resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.
|
327 |
-
"integrity": "sha512-
|
328 |
"cpu": [
|
329 |
"arm64"
|
330 |
],
|
@@ -337,9 +337,9 @@
|
|
337 |
}
|
338 |
},
|
339 |
"node_modules/@esbuild/win32-ia32": {
|
340 |
-
"version": "0.19.
|
341 |
-
"resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.
|
342 |
-
"integrity": "sha512-
|
343 |
"cpu": [
|
344 |
"ia32"
|
345 |
],
|
@@ -352,9 +352,9 @@
|
|
352 |
}
|
353 |
},
|
354 |
"node_modules/@esbuild/win32-x64": {
|
355 |
-
"version": "0.19.
|
356 |
-
"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.
|
357 |
-
"integrity": "sha512-
|
358 |
"cpu": [
|
359 |
"x64"
|
360 |
],
|
@@ -411,11 +411,11 @@
|
|
411 |
}
|
412 |
},
|
413 |
"node_modules/@gradio/atoms": {
|
414 |
-
"version": "0.2.
|
415 |
-
"resolved": "https://registry.npmjs.org/@gradio/atoms/-/atoms-0.2.
|
416 |
-
"integrity": "sha512-
|
417 |
"dependencies": {
|
418 |
-
"@gradio/icons": "^0.2.
|
419 |
"@gradio/utils": "^0.2.0"
|
420 |
}
|
421 |
},
|
@@ -438,17 +438,17 @@
|
|
438 |
"integrity": "sha512-P24nqqVnMXBaDA1f/zSN5HZRho4PxP8Dq+7VltPHlmxIEiZYik2AJ4J0LeuIha34FDO0guu/16evdrpvGIUAfw=="
|
439 |
},
|
440 |
"node_modules/@gradio/icons": {
|
441 |
-
"version": "0.2.
|
442 |
-
"resolved": "https://registry.npmjs.org/@gradio/icons/-/icons-0.2.
|
443 |
-
"integrity": "sha512-
|
444 |
},
|
445 |
"node_modules/@gradio/markdown": {
|
446 |
-
"version": "0.3.
|
447 |
-
"resolved": "https://registry.npmjs.org/@gradio/markdown/-/markdown-0.3.
|
448 |
-
"integrity": "sha512-
|
449 |
"dependencies": {
|
450 |
-
"@gradio/atoms": "^0.2.
|
451 |
-
"@gradio/statustracker": "^0.3.
|
452 |
"@gradio/utils": "^0.2.0",
|
453 |
"@types/dompurify": "^3.0.2",
|
454 |
"@types/katex": "^0.16.0",
|
@@ -461,13 +461,13 @@
|
|
461 |
}
|
462 |
},
|
463 |
"node_modules/@gradio/statustracker": {
|
464 |
-
"version": "0.3.
|
465 |
-
"resolved": "https://registry.npmjs.org/@gradio/statustracker/-/statustracker-0.3.
|
466 |
-
"integrity": "sha512-
|
467 |
"dependencies": {
|
468 |
-
"@gradio/atoms": "^0.2.
|
469 |
"@gradio/column": "^0.1.0",
|
470 |
-
"@gradio/icons": "^0.2.
|
471 |
"@gradio/utils": "^0.2.0"
|
472 |
}
|
473 |
},
|
@@ -477,14 +477,14 @@
|
|
477 |
"integrity": "sha512-33c68Nk7oRXLn08OxPfjcPm7S4tXGOUV1I1bVgzdM2YV5o1QBOS1GEnXPZPu/CEYPePLMB6bsDwffrLEyLGWVQ=="
|
478 |
},
|
479 |
"node_modules/@gradio/upload": {
|
480 |
-
"version": "0.4.
|
481 |
-
"resolved": "https://registry.npmjs.org/@gradio/upload/-/upload-0.4.
|
482 |
-
"integrity": "sha512-
|
483 |
"dependencies": {
|
484 |
-
"@gradio/atoms": "^0.2.
|
485 |
"@gradio/client": "^0.8.1",
|
486 |
-
"@gradio/icons": "^0.2.
|
487 |
-
"@gradio/upload": "^0.4.
|
488 |
"@gradio/utils": "^0.2.0"
|
489 |
}
|
490 |
},
|
@@ -740,9 +740,9 @@
|
|
740 |
}
|
741 |
},
|
742 |
"node_modules/esbuild": {
|
743 |
-
"version": "0.19.
|
744 |
-
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.
|
745 |
-
"integrity": "sha512-
|
746 |
"hasInstallScript": true,
|
747 |
"bin": {
|
748 |
"esbuild": "bin/esbuild"
|
@@ -751,28 +751,28 @@
|
|
751 |
"node": ">=12"
|
752 |
},
|
753 |
"optionalDependencies": {
|
754 |
-
"@esbuild/android-arm": "0.19.
|
755 |
-
"@esbuild/android-arm64": "0.19.
|
756 |
-
"@esbuild/android-x64": "0.19.
|
757 |
-
"@esbuild/darwin-arm64": "0.19.
|
758 |
-
"@esbuild/darwin-x64": "0.19.
|
759 |
-
"@esbuild/freebsd-arm64": "0.19.
|
760 |
-
"@esbuild/freebsd-x64": "0.19.
|
761 |
-
"@esbuild/linux-arm": "0.19.
|
762 |
-
"@esbuild/linux-arm64": "0.19.
|
763 |
-
"@esbuild/linux-ia32": "0.19.
|
764 |
-
"@esbuild/linux-loong64": "0.19.
|
765 |
-
"@esbuild/linux-mips64el": "0.19.
|
766 |
-
"@esbuild/linux-ppc64": "0.19.
|
767 |
-
"@esbuild/linux-riscv64": "0.19.
|
768 |
-
"@esbuild/linux-s390x": "0.19.
|
769 |
-
"@esbuild/linux-x64": "0.19.
|
770 |
-
"@esbuild/netbsd-x64": "0.19.
|
771 |
-
"@esbuild/openbsd-x64": "0.19.
|
772 |
-
"@esbuild/sunos-x64": "0.19.
|
773 |
-
"@esbuild/win32-arm64": "0.19.
|
774 |
-
"@esbuild/win32-ia32": "0.19.
|
775 |
-
"@esbuild/win32-x64": "0.19.
|
776 |
}
|
777 |
},
|
778 |
"node_modules/estree-walker": {
|
@@ -936,9 +936,9 @@
|
|
936 |
"integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ=="
|
937 |
},
|
938 |
"node_modules/node-gyp-build": {
|
939 |
-
"version": "4.
|
940 |
-
"resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.
|
941 |
-
"integrity": "sha512-
|
942 |
"bin": {
|
943 |
"node-gyp-build": "bin.js",
|
944 |
"node-gyp-build-optional": "optional.js",
|
@@ -993,9 +993,9 @@
|
|
993 |
}
|
994 |
},
|
995 |
"node_modules/svelte": {
|
996 |
-
"version": "4.2.
|
997 |
-
"resolved": "https://registry.npmjs.org/svelte/-/svelte-4.2.
|
998 |
-
"integrity": "sha512-
|
999 |
"peer": true,
|
1000 |
"dependencies": {
|
1001 |
"@ampproject/remapping": "^2.2.1",
|
|
|
1 |
{
|
2 |
"name": "gradio_gptchatbot",
|
3 |
+
"version": "0.4.6",
|
4 |
"lockfileVersion": 3,
|
5 |
"requires": true,
|
6 |
"packages": {
|
7 |
"": {
|
8 |
"name": "gradio_gptchatbot",
|
9 |
+
"version": "0.4.6",
|
10 |
"license": "ISC",
|
11 |
"dependencies": {
|
12 |
+
"@gradio/atoms": "0.2.2",
|
13 |
"@gradio/client": "0.8.1",
|
14 |
+
"@gradio/icons": "0.2.1",
|
15 |
+
"@gradio/markdown": "0.3.2",
|
16 |
+
"@gradio/statustracker": "0.3.2",
|
17 |
"@gradio/theme": "0.2.0",
|
18 |
+
"@gradio/upload": "0.4.2",
|
19 |
"@gradio/utils": "0.2.0",
|
20 |
"@types/dompurify": "^3.0.2",
|
21 |
"@types/katex": "^0.16.0",
|
|
|
37 |
}
|
38 |
},
|
39 |
"node_modules/@esbuild/android-arm": {
|
40 |
+
"version": "0.19.6",
|
41 |
+
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.6.tgz",
|
42 |
+
"integrity": "sha512-muPzBqXJKCbMYoNbb1JpZh/ynl0xS6/+pLjrofcR3Nad82SbsCogYzUE6Aq9QT3cLP0jR/IVK/NHC9b90mSHtg==",
|
43 |
"cpu": [
|
44 |
"arm"
|
45 |
],
|
|
|
52 |
}
|
53 |
},
|
54 |
"node_modules/@esbuild/android-arm64": {
|
55 |
+
"version": "0.19.6",
|
56 |
+
"resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.6.tgz",
|
57 |
+
"integrity": "sha512-KQ/hbe9SJvIJ4sR+2PcZ41IBV+LPJyYp6V1K1P1xcMRup9iYsBoQn4MzE3mhMLOld27Au2eDcLlIREeKGUXpHQ==",
|
58 |
"cpu": [
|
59 |
"arm64"
|
60 |
],
|
|
|
67 |
}
|
68 |
},
|
69 |
"node_modules/@esbuild/android-x64": {
|
70 |
+
"version": "0.19.6",
|
71 |
+
"resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.6.tgz",
|
72 |
+
"integrity": "sha512-VVJVZQ7p5BBOKoNxd0Ly3xUM78Y4DyOoFKdkdAe2m11jbh0LEU4bPles4e/72EMl4tapko8o915UalN/5zhspg==",
|
73 |
"cpu": [
|
74 |
"x64"
|
75 |
],
|
|
|
82 |
}
|
83 |
},
|
84 |
"node_modules/@esbuild/darwin-arm64": {
|
85 |
+
"version": "0.19.6",
|
86 |
+
"resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.6.tgz",
|
87 |
+
"integrity": "sha512-91LoRp/uZAKx6ESNspL3I46ypwzdqyDLXZH7x2QYCLgtnaU08+AXEbabY2yExIz03/am0DivsTtbdxzGejfXpA==",
|
88 |
"cpu": [
|
89 |
"arm64"
|
90 |
],
|
|
|
97 |
}
|
98 |
},
|
99 |
"node_modules/@esbuild/darwin-x64": {
|
100 |
+
"version": "0.19.6",
|
101 |
+
"resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.6.tgz",
|
102 |
+
"integrity": "sha512-QCGHw770ubjBU1J3ZkFJh671MFajGTYMZumPs9E/rqU52md6lIil97BR0CbPq6U+vTh3xnTNDHKRdR8ggHnmxQ==",
|
103 |
"cpu": [
|
104 |
"x64"
|
105 |
],
|
|
|
112 |
}
|
113 |
},
|
114 |
"node_modules/@esbuild/freebsd-arm64": {
|
115 |
+
"version": "0.19.6",
|
116 |
+
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.6.tgz",
|
117 |
+
"integrity": "sha512-J53d0jGsDcLzWk9d9SPmlyF+wzVxjXpOH7jVW5ae7PvrDst4kiAz6sX+E8btz0GB6oH12zC+aHRD945jdjF2Vg==",
|
118 |
"cpu": [
|
119 |
"arm64"
|
120 |
],
|
|
|
127 |
}
|
128 |
},
|
129 |
"node_modules/@esbuild/freebsd-x64": {
|
130 |
+
"version": "0.19.6",
|
131 |
+
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.6.tgz",
|
132 |
+
"integrity": "sha512-hn9qvkjHSIB5Z9JgCCjED6YYVGCNpqB7dEGavBdG6EjBD8S/UcNUIlGcB35NCkMETkdYwfZSvD9VoDJX6VeUVA==",
|
133 |
"cpu": [
|
134 |
"x64"
|
135 |
],
|
|
|
142 |
}
|
143 |
},
|
144 |
"node_modules/@esbuild/linux-arm": {
|
145 |
+
"version": "0.19.6",
|
146 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.6.tgz",
|
147 |
+
"integrity": "sha512-G8IR5zFgpXad/Zp7gr7ZyTKyqZuThU6z1JjmRyN1vSF8j0bOlGzUwFSMTbctLAdd7QHpeyu0cRiuKrqK1ZTwvQ==",
|
148 |
"cpu": [
|
149 |
"arm"
|
150 |
],
|
|
|
157 |
}
|
158 |
},
|
159 |
"node_modules/@esbuild/linux-arm64": {
|
160 |
+
"version": "0.19.6",
|
161 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.6.tgz",
|
162 |
+
"integrity": "sha512-HQCOrk9XlH3KngASLaBfHpcoYEGUt829A9MyxaI8RMkfRA8SakG6YQEITAuwmtzFdEu5GU4eyhKcpv27dFaOBg==",
|
163 |
"cpu": [
|
164 |
"arm64"
|
165 |
],
|
|
|
172 |
}
|
173 |
},
|
174 |
"node_modules/@esbuild/linux-ia32": {
|
175 |
+
"version": "0.19.6",
|
176 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.6.tgz",
|
177 |
+
"integrity": "sha512-22eOR08zL/OXkmEhxOfshfOGo8P69k8oKHkwkDrUlcB12S/sw/+COM4PhAPT0cAYW/gpqY2uXp3TpjQVJitz7w==",
|
178 |
"cpu": [
|
179 |
"ia32"
|
180 |
],
|
|
|
187 |
}
|
188 |
},
|
189 |
"node_modules/@esbuild/linux-loong64": {
|
190 |
+
"version": "0.19.6",
|
191 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.6.tgz",
|
192 |
+
"integrity": "sha512-82RvaYAh/SUJyjWA8jDpyZCHQjmEggL//sC7F3VKYcBMumQjUL3C5WDl/tJpEiKtt7XrWmgjaLkrk205zfvwTA==",
|
193 |
"cpu": [
|
194 |
"loong64"
|
195 |
],
|
|
|
202 |
}
|
203 |
},
|
204 |
"node_modules/@esbuild/linux-mips64el": {
|
205 |
+
"version": "0.19.6",
|
206 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.6.tgz",
|
207 |
+
"integrity": "sha512-8tvnwyYJpR618vboIv2l8tK2SuK/RqUIGMfMENkeDGo3hsEIrpGldMGYFcWxWeEILe5Fi72zoXLmhZ7PR23oQA==",
|
208 |
"cpu": [
|
209 |
"mips64el"
|
210 |
],
|
|
|
217 |
}
|
218 |
},
|
219 |
"node_modules/@esbuild/linux-ppc64": {
|
220 |
+
"version": "0.19.6",
|
221 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.6.tgz",
|
222 |
+
"integrity": "sha512-Qt+D7xiPajxVNk5tQiEJwhmarNnLPdjXAoA5uWMpbfStZB0+YU6a3CtbWYSy+sgAsnyx4IGZjWsTzBzrvg/fMA==",
|
223 |
"cpu": [
|
224 |
"ppc64"
|
225 |
],
|
|
|
232 |
}
|
233 |
},
|
234 |
"node_modules/@esbuild/linux-riscv64": {
|
235 |
+
"version": "0.19.6",
|
236 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.6.tgz",
|
237 |
+
"integrity": "sha512-lxRdk0iJ9CWYDH1Wpnnnc640ajF4RmQ+w6oHFZmAIYu577meE9Ka/DCtpOrwr9McMY11ocbp4jirgGgCi7Ls/g==",
|
238 |
"cpu": [
|
239 |
"riscv64"
|
240 |
],
|
|
|
247 |
}
|
248 |
},
|
249 |
"node_modules/@esbuild/linux-s390x": {
|
250 |
+
"version": "0.19.6",
|
251 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.6.tgz",
|
252 |
+
"integrity": "sha512-MopyYV39vnfuykHanRWHGRcRC3AwU7b0QY4TI8ISLfAGfK+tMkXyFuyT1epw/lM0pflQlS53JoD22yN83DHZgA==",
|
253 |
"cpu": [
|
254 |
"s390x"
|
255 |
],
|
|
|
262 |
}
|
263 |
},
|
264 |
"node_modules/@esbuild/linux-x64": {
|
265 |
+
"version": "0.19.6",
|
266 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.6.tgz",
|
267 |
+
"integrity": "sha512-UWcieaBzsN8WYbzFF5Jq7QULETPcQvlX7KL4xWGIB54OknXJjBO37sPqk7N82WU13JGWvmDzFBi1weVBajPovg==",
|
268 |
"cpu": [
|
269 |
"x64"
|
270 |
],
|
|
|
277 |
}
|
278 |
},
|
279 |
"node_modules/@esbuild/netbsd-x64": {
|
280 |
+
"version": "0.19.6",
|
281 |
+
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.6.tgz",
|
282 |
+
"integrity": "sha512-EpWiLX0fzvZn1wxtLxZrEW+oQED9Pwpnh+w4Ffv8ZLuMhUoqR9q9rL4+qHW8F4Mg5oQEKxAoT0G+8JYNqCiR6g==",
|
283 |
"cpu": [
|
284 |
"x64"
|
285 |
],
|
|
|
292 |
}
|
293 |
},
|
294 |
"node_modules/@esbuild/openbsd-x64": {
|
295 |
+
"version": "0.19.6",
|
296 |
+
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.6.tgz",
|
297 |
+
"integrity": "sha512-fFqTVEktM1PGs2sLKH4M5mhAVEzGpeZJuasAMRnvDZNCV0Cjvm1Hu35moL2vC0DOrAQjNTvj4zWrol/lwQ8Deg==",
|
298 |
"cpu": [
|
299 |
"x64"
|
300 |
],
|
|
|
307 |
}
|
308 |
},
|
309 |
"node_modules/@esbuild/sunos-x64": {
|
310 |
+
"version": "0.19.6",
|
311 |
+
"resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.6.tgz",
|
312 |
+
"integrity": "sha512-M+XIAnBpaNvaVAhbe3uBXtgWyWynSdlww/JNZws0FlMPSBy+EpatPXNIlKAdtbFVII9OpX91ZfMb17TU3JKTBA==",
|
313 |
"cpu": [
|
314 |
"x64"
|
315 |
],
|
|
|
322 |
}
|
323 |
},
|
324 |
"node_modules/@esbuild/win32-arm64": {
|
325 |
+
"version": "0.19.6",
|
326 |
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.6.tgz",
|
327 |
+
"integrity": "sha512-2DchFXn7vp/B6Tc2eKdTsLzE0ygqKkNUhUBCNtMx2Llk4POIVMUq5rUYjdcedFlGLeRe1uLCpVvCmE+G8XYybA==",
|
328 |
"cpu": [
|
329 |
"arm64"
|
330 |
],
|
|
|
337 |
}
|
338 |
},
|
339 |
"node_modules/@esbuild/win32-ia32": {
|
340 |
+
"version": "0.19.6",
|
341 |
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.6.tgz",
|
342 |
+
"integrity": "sha512-PBo/HPDQllyWdjwAVX+Gl2hH0dfBydL97BAH/grHKC8fubqp02aL4S63otZ25q3sBdINtOBbz1qTZQfXbP4VBg==",
|
343 |
"cpu": [
|
344 |
"ia32"
|
345 |
],
|
|
|
352 |
}
|
353 |
},
|
354 |
"node_modules/@esbuild/win32-x64": {
|
355 |
+
"version": "0.19.6",
|
356 |
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.6.tgz",
|
357 |
+
"integrity": "sha512-OE7yIdbDif2kKfrGa+V0vx/B3FJv2L4KnIiLlvtibPyO9UkgO3rzYE0HhpREo2vmJ1Ixq1zwm9/0er+3VOSZJA==",
|
358 |
"cpu": [
|
359 |
"x64"
|
360 |
],
|
|
|
411 |
}
|
412 |
},
|
413 |
"node_modules/@gradio/atoms": {
|
414 |
+
"version": "0.2.2",
|
415 |
+
"resolved": "https://registry.npmjs.org/@gradio/atoms/-/atoms-0.2.2.tgz",
|
416 |
+
"integrity": "sha512-tyBd1MTXGGyDFUyKSWW5L9ZpyxsORbeDB2lgDN149b+nAv5BmOSoKDMyJ11pbQJEZDRzYVLHDfkKUd9FAHA0nQ==",
|
417 |
"dependencies": {
|
418 |
+
"@gradio/icons": "^0.2.1",
|
419 |
"@gradio/utils": "^0.2.0"
|
420 |
}
|
421 |
},
|
|
|
438 |
"integrity": "sha512-P24nqqVnMXBaDA1f/zSN5HZRho4PxP8Dq+7VltPHlmxIEiZYik2AJ4J0LeuIha34FDO0guu/16evdrpvGIUAfw=="
|
439 |
},
|
440 |
"node_modules/@gradio/icons": {
|
441 |
+
"version": "0.2.1",
|
442 |
+
"resolved": "https://registry.npmjs.org/@gradio/icons/-/icons-0.2.1.tgz",
|
443 |
+
"integrity": "sha512-qJ0mP14UZzU9lwCU+dfiHZJsOktFD1/x6VxS3BZNX7HG93M5EO3kpc6hQLy5ZMVgUmKIPKASKkaFJQYi53UJ3Q=="
|
444 |
},
|
445 |
"node_modules/@gradio/markdown": {
|
446 |
+
"version": "0.3.2",
|
447 |
+
"resolved": "https://registry.npmjs.org/@gradio/markdown/-/markdown-0.3.2.tgz",
|
448 |
+
"integrity": "sha512-wvb8ft8EvRzoq+/VwCUvG9EtmVtvkqP85txWJDoOGp9KTfXTp7zGG13Lrx8MT9hUewAizSlGVIwg2Ir8bv58Mg==",
|
449 |
"dependencies": {
|
450 |
+
"@gradio/atoms": "^0.2.2",
|
451 |
+
"@gradio/statustracker": "^0.3.2",
|
452 |
"@gradio/utils": "^0.2.0",
|
453 |
"@types/dompurify": "^3.0.2",
|
454 |
"@types/katex": "^0.16.0",
|
|
|
461 |
}
|
462 |
},
|
463 |
"node_modules/@gradio/statustracker": {
|
464 |
+
"version": "0.3.2",
|
465 |
+
"resolved": "https://registry.npmjs.org/@gradio/statustracker/-/statustracker-0.3.2.tgz",
|
466 |
+
"integrity": "sha512-eb7GPGvSZ1VWIzhsGFyi1LGk8aLbafXu7QszTVebn4GE5l7VvdLWzBAqQGXA8CFJsF5y03z9Ky1vwzNkWKKX5w==",
|
467 |
"dependencies": {
|
468 |
+
"@gradio/atoms": "^0.2.2",
|
469 |
"@gradio/column": "^0.1.0",
|
470 |
+
"@gradio/icons": "^0.2.1",
|
471 |
"@gradio/utils": "^0.2.0"
|
472 |
}
|
473 |
},
|
|
|
477 |
"integrity": "sha512-33c68Nk7oRXLn08OxPfjcPm7S4tXGOUV1I1bVgzdM2YV5o1QBOS1GEnXPZPu/CEYPePLMB6bsDwffrLEyLGWVQ=="
|
478 |
},
|
479 |
"node_modules/@gradio/upload": {
|
480 |
+
"version": "0.4.2",
|
481 |
+
"resolved": "https://registry.npmjs.org/@gradio/upload/-/upload-0.4.2.tgz",
|
482 |
+
"integrity": "sha512-2yUN7o5AVmm9IJDcFieCG9bYFkMildTwqfnPlWlVcGKuvVHHThUpA/+nx9wDCAUhJt38Zlkp6Ye+GI1HdDSilQ==",
|
483 |
"dependencies": {
|
484 |
+
"@gradio/atoms": "^0.2.2",
|
485 |
"@gradio/client": "^0.8.1",
|
486 |
+
"@gradio/icons": "^0.2.1",
|
487 |
+
"@gradio/upload": "^0.4.2",
|
488 |
"@gradio/utils": "^0.2.0"
|
489 |
}
|
490 |
},
|
|
|
740 |
}
|
741 |
},
|
742 |
"node_modules/esbuild": {
|
743 |
+
"version": "0.19.6",
|
744 |
+
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.6.tgz",
|
745 |
+
"integrity": "sha512-Xl7dntjA2OEIvpr9j0DVxxnog2fyTGnyVoQXAMQI6eR3mf9zCQds7VIKUDCotDgE/p4ncTgeRqgX8t5d6oP4Gw==",
|
746 |
"hasInstallScript": true,
|
747 |
"bin": {
|
748 |
"esbuild": "bin/esbuild"
|
|
|
751 |
"node": ">=12"
|
752 |
},
|
753 |
"optionalDependencies": {
|
754 |
+
"@esbuild/android-arm": "0.19.6",
|
755 |
+
"@esbuild/android-arm64": "0.19.6",
|
756 |
+
"@esbuild/android-x64": "0.19.6",
|
757 |
+
"@esbuild/darwin-arm64": "0.19.6",
|
758 |
+
"@esbuild/darwin-x64": "0.19.6",
|
759 |
+
"@esbuild/freebsd-arm64": "0.19.6",
|
760 |
+
"@esbuild/freebsd-x64": "0.19.6",
|
761 |
+
"@esbuild/linux-arm": "0.19.6",
|
762 |
+
"@esbuild/linux-arm64": "0.19.6",
|
763 |
+
"@esbuild/linux-ia32": "0.19.6",
|
764 |
+
"@esbuild/linux-loong64": "0.19.6",
|
765 |
+
"@esbuild/linux-mips64el": "0.19.6",
|
766 |
+
"@esbuild/linux-ppc64": "0.19.6",
|
767 |
+
"@esbuild/linux-riscv64": "0.19.6",
|
768 |
+
"@esbuild/linux-s390x": "0.19.6",
|
769 |
+
"@esbuild/linux-x64": "0.19.6",
|
770 |
+
"@esbuild/netbsd-x64": "0.19.6",
|
771 |
+
"@esbuild/openbsd-x64": "0.19.6",
|
772 |
+
"@esbuild/sunos-x64": "0.19.6",
|
773 |
+
"@esbuild/win32-arm64": "0.19.6",
|
774 |
+
"@esbuild/win32-ia32": "0.19.6",
|
775 |
+
"@esbuild/win32-x64": "0.19.6"
|
776 |
}
|
777 |
},
|
778 |
"node_modules/estree-walker": {
|
|
|
936 |
"integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ=="
|
937 |
},
|
938 |
"node_modules/node-gyp-build": {
|
939 |
+
"version": "4.7.0",
|
940 |
+
"resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.7.0.tgz",
|
941 |
+
"integrity": "sha512-PbZERfeFdrHQOOXiAKOY0VPbykZy90ndPKk0d+CFDegTKmWp1VgOTz2xACVbr1BjCWxrQp68CXtvNsveFhqDJg==",
|
942 |
"bin": {
|
943 |
"node-gyp-build": "bin.js",
|
944 |
"node-gyp-build-optional": "optional.js",
|
|
|
993 |
}
|
994 |
},
|
995 |
"node_modules/svelte": {
|
996 |
+
"version": "4.2.6",
|
997 |
+
"resolved": "https://registry.npmjs.org/svelte/-/svelte-4.2.6.tgz",
|
998 |
+
"integrity": "sha512-M6GYr+9oYw3AkciFm3Q+v9IWocOb0L+2aYsOtP3mKAxVqj4RK4xJRjLdQRZi+39UowCpn53Ghr7VkFBpkRFk9g==",
|
999 |
"peer": true,
|
1000 |
"dependencies": {
|
1001 |
"@ampproject/remapping": "^2.2.1",
|
src/frontend/package.json
CHANGED
@@ -1,19 +1,19 @@
|
|
1 |
{
|
2 |
"name": "gradio_gptchatbot",
|
3 |
-
"version": "0.4.
|
4 |
"description": "Gradio UI packages",
|
5 |
"type": "module",
|
6 |
"author": "",
|
7 |
"license": "ISC",
|
8 |
"private": false,
|
9 |
"dependencies": {
|
10 |
-
"@gradio/atoms": "0.2.
|
11 |
"@gradio/client": "0.8.1",
|
12 |
-
"@gradio/icons": "0.2.
|
13 |
-
"@gradio/markdown": "0.3.
|
14 |
-
"@gradio/statustracker": "0.3.
|
15 |
"@gradio/theme": "0.2.0",
|
16 |
-
"@gradio/upload": "0.4.
|
17 |
"@gradio/utils": "0.2.0",
|
18 |
"@types/dompurify": "^3.0.2",
|
19 |
"@types/katex": "^0.16.0",
|
|
|
1 |
{
|
2 |
"name": "gradio_gptchatbot",
|
3 |
+
"version": "0.4.6",
|
4 |
"description": "Gradio UI packages",
|
5 |
"type": "module",
|
6 |
"author": "",
|
7 |
"license": "ISC",
|
8 |
"private": false,
|
9 |
"dependencies": {
|
10 |
+
"@gradio/atoms": "0.2.2",
|
11 |
"@gradio/client": "0.8.1",
|
12 |
+
"@gradio/icons": "0.2.1",
|
13 |
+
"@gradio/markdown": "0.3.2",
|
14 |
+
"@gradio/statustracker": "0.3.2",
|
15 |
"@gradio/theme": "0.2.0",
|
16 |
+
"@gradio/upload": "0.4.2",
|
17 |
"@gradio/utils": "0.2.0",
|
18 |
"@types/dompurify": "^3.0.2",
|
19 |
"@types/katex": "^0.16.0",
|
src/frontend/shared/ChatBot.svelte
CHANGED
@@ -128,7 +128,30 @@
|
|
128 |
aria-live="polite"
|
129 |
>
|
130 |
<div class="message-wrap" class:bubble-gap={layout === "bubble"} use:copy>
|
131 |
-
{#if value
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
{#each value as message_pair, i}
|
133 |
{#each message_pair as message, j}
|
134 |
{#if message !== null}
|
@@ -550,4 +573,38 @@
|
|
550 |
.message-wrap :global(pre) {
|
551 |
position: relative;
|
552 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
553 |
</style>
|
|
|
128 |
aria-live="polite"
|
129 |
>
|
130 |
<div class="message-wrap" class:bubble-gap={layout === "bubble"} use:copy>
|
131 |
+
{#if value === null || value.length == 0}
|
132 |
+
<div
|
133 |
+
class={layout === "bubble" ? "bubble-wrap" : "panel-wrap"}
|
134 |
+
bind:this={div}
|
135 |
+
role="log"
|
136 |
+
aria-label="chatbot conversation"
|
137 |
+
aria-live="polite"
|
138 |
+
>
|
139 |
+
<div class="logo-container">
|
140 |
+
<img class="centered-logo" src="https://raw.githubusercontent.com/gradio-app/gradio/main/js/_website/static/favicon.png" alt="Chatbot Logo" />
|
141 |
+
</div>
|
142 |
+
<p class="placeholder-text">How can I help you today?</p>
|
143 |
+
<div class="message-wrap" class:bubble-gap={layout === "bubble"} use:copy>
|
144 |
+
<!-- Existing message elements -->
|
145 |
+
</div>
|
146 |
+
<div class="buttons-container">
|
147 |
+
<button class="action-button">Plan a trip</button>
|
148 |
+
<button class="action-button">Brainstorm names</button>
|
149 |
+
<button class="action-button">Write a spreadsheet formula</button>
|
150 |
+
<button class="action-button">Create a charter</button>
|
151 |
+
</div>
|
152 |
+
</div>
|
153 |
+
|
154 |
+
{:else}
|
155 |
{#each value as message_pair, i}
|
156 |
{#each message_pair as message, j}
|
157 |
{#if message !== null}
|
|
|
573 |
.message-wrap :global(pre) {
|
574 |
position: relative;
|
575 |
}
|
576 |
+
|
577 |
+
.logo-container {
|
578 |
+
text-align: center;
|
579 |
+
padding: 20px;
|
580 |
+
}
|
581 |
+
|
582 |
+
.centered-logo {
|
583 |
+
max-width: 150px; /* Adjust as needed */
|
584 |
+
margin: 0 auto;
|
585 |
+
}
|
586 |
+
|
587 |
+
.placeholder-text {
|
588 |
+
text-align: center;
|
589 |
+
color: #666; /* Placeholder text color */
|
590 |
+
font-size: large;
|
591 |
+
margin-bottom: 20px;
|
592 |
+
}
|
593 |
+
|
594 |
+
.buttons-container {
|
595 |
+
display: flex;
|
596 |
+
justify-content: space-evenly;
|
597 |
+
padding: 0 0;
|
598 |
+
}
|
599 |
+
|
600 |
+
.action-button {
|
601 |
+
padding: 10px 20px;
|
602 |
+
margin: 0 5px;
|
603 |
+
border: 1px solid rgb(229, 229, 229);
|
604 |
+
border-radius: 10px;
|
605 |
+
cursor: pointer;
|
606 |
+
}
|
607 |
+
|
608 |
+
/* Add responsive design or additional styling as needed */
|
609 |
+
|
610 |
</style>
|
src/pyproject.toml
CHANGED
@@ -8,13 +8,16 @@ build-backend = "hatchling.build"
|
|
8 |
|
9 |
[project]
|
10 |
name = "gradio_gptchatbot"
|
11 |
-
version = "0.0.
|
12 |
-
description = "
|
13 |
readme = "README.md"
|
14 |
-
license = "
|
15 |
requires-python = ">=3.8"
|
16 |
authors = [{ name = "YOUR NAME", email = "YOUREMAIL@domain.com" }]
|
17 |
-
keywords = [
|
|
|
|
|
|
|
18 |
# Add dependencies here
|
19 |
dependencies = ["gradio>=4.0,<5.0"]
|
20 |
classifiers = [
|
@@ -36,7 +39,7 @@ classifiers = [
|
|
36 |
dev = ["build", "twine"]
|
37 |
|
38 |
[tool.hatch.build]
|
39 |
-
artifacts = ["/backend/gradio_gptchatbot/templates", "*.pyi"]
|
40 |
|
41 |
[tool.hatch.build.targets.wheel]
|
42 |
packages = ["/backend/gradio_gptchatbot"]
|
|
|
8 |
|
9 |
[project]
|
10 |
name = "gradio_gptchatbot"
|
11 |
+
version = "0.0.1"
|
12 |
+
description = "Python library for easily interacting with trained machine learning models"
|
13 |
readme = "README.md"
|
14 |
+
license = "Apache-2.0"
|
15 |
requires-python = ">=3.8"
|
16 |
authors = [{ name = "YOUR NAME", email = "YOUREMAIL@domain.com" }]
|
17 |
+
keywords = [
|
18 |
+
"gradio-custom-component",
|
19 |
+
"gradio-template-Chatbot"
|
20 |
+
]
|
21 |
# Add dependencies here
|
22 |
dependencies = ["gradio>=4.0,<5.0"]
|
23 |
classifiers = [
|
|
|
39 |
dev = ["build", "twine"]
|
40 |
|
41 |
[tool.hatch.build]
|
42 |
+
artifacts = ["/backend/gradio_gptchatbot/templates", "*.pyi", "backend/gradio_gptchatbot/templates"]
|
43 |
|
44 |
[tool.hatch.build.targets.wheel]
|
45 |
packages = ["/backend/gradio_gptchatbot"]
|