Spaces:
Build error
Build error
test
Browse files- client/pdm.lock +165 -1
- client/pyproject.toml +3 -0
- client/src/main.py +28 -1
- display/.tool-versions +1 -0
- display/index.html +18 -0
- display/package.json +12 -0
client/pdm.lock
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
groups = ["default"]
|
6 |
strategy = ["cross_platform"]
|
7 |
lock_version = "4.4"
|
8 |
-
content_hash = "sha256:
|
9 |
|
10 |
[[package]]
|
11 |
name = "accelerate"
|
@@ -26,6 +26,16 @@ files = [
|
|
26 |
{file = "accelerate-0.26.1.tar.gz", hash = "sha256:bf63716b6bd9460d87da970cf4d833abb824ca0aa633be36b741e63a1b504f89"},
|
27 |
]
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
[[package]]
|
30 |
name = "anyio"
|
31 |
version = "4.2.0"
|
@@ -90,6 +100,19 @@ files = [
|
|
90 |
{file = "charset_normalizer-3.3.2-py3-none-any.whl", hash = "sha256:3e4d1f6587322d2788836a99c69062fbb091331ec940e02d12d179c1d53e25fc"},
|
91 |
]
|
92 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
[[package]]
|
94 |
name = "colorama"
|
95 |
version = "0.4.6"
|
@@ -100,6 +123,21 @@ files = [
|
|
100 |
{file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"},
|
101 |
]
|
102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
[[package]]
|
104 |
name = "filelock"
|
105 |
version = "3.13.1"
|
@@ -445,6 +483,89 @@ files = [
|
|
445 |
{file = "PyAudio-0.2.14.tar.gz", hash = "sha256:78dfff3879b4994d1f4fc6485646a57755c6ee3c19647a491f790a0895bd2f87"},
|
446 |
]
|
447 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
448 |
[[package]]
|
449 |
name = "pyyaml"
|
450 |
version = "6.0.1"
|
@@ -605,6 +726,35 @@ files = [
|
|
605 |
{file = "SpeechRecognition-3.10.1.tar.gz", hash = "sha256:718731886b7836e20a06b9a2c6cace12a9e130971bb6af1b1dd130b22bad9f82"},
|
606 |
]
|
607 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
608 |
[[package]]
|
609 |
name = "sympy"
|
610 |
version = "1.12"
|
@@ -796,3 +946,17 @@ files = [
|
|
796 |
{file = "urllib3-2.1.0-py3-none-any.whl", hash = "sha256:55901e917a5896a349ff771be919f8bd99aff50b79fe58fec595eb37bbc56bb3"},
|
797 |
{file = "urllib3-2.1.0.tar.gz", hash = "sha256:df7aa8afb0148fa78488e7899b2c59b5f4ffcfa82e6c54ccb9dd37c1d7b52d54"},
|
798 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
groups = ["default"]
|
6 |
strategy = ["cross_platform"]
|
7 |
lock_version = "4.4"
|
8 |
+
content_hash = "sha256:857f6bee624a8988029137b8c0fd4f60a2b1be8a6ed6e6654eff4dba8579e8a3"
|
9 |
|
10 |
[[package]]
|
11 |
name = "accelerate"
|
|
|
26 |
{file = "accelerate-0.26.1.tar.gz", hash = "sha256:bf63716b6bd9460d87da970cf4d833abb824ca0aa633be36b741e63a1b504f89"},
|
27 |
]
|
28 |
|
29 |
+
[[package]]
|
30 |
+
name = "annotated-types"
|
31 |
+
version = "0.6.0"
|
32 |
+
requires_python = ">=3.8"
|
33 |
+
summary = "Reusable constraint types to use with typing.Annotated"
|
34 |
+
files = [
|
35 |
+
{file = "annotated_types-0.6.0-py3-none-any.whl", hash = "sha256:0641064de18ba7a25dee8f96403ebc39113d0cb953a01429249d5c7564666a43"},
|
36 |
+
{file = "annotated_types-0.6.0.tar.gz", hash = "sha256:563339e807e53ffd9c267e99fc6d9ea23eb8443c08f112651963e24e22f84a5d"},
|
37 |
+
]
|
38 |
+
|
39 |
[[package]]
|
40 |
name = "anyio"
|
41 |
version = "4.2.0"
|
|
|
100 |
{file = "charset_normalizer-3.3.2-py3-none-any.whl", hash = "sha256:3e4d1f6587322d2788836a99c69062fbb091331ec940e02d12d179c1d53e25fc"},
|
101 |
]
|
102 |
|
103 |
+
[[package]]
|
104 |
+
name = "click"
|
105 |
+
version = "8.1.7"
|
106 |
+
requires_python = ">=3.7"
|
107 |
+
summary = "Composable command line interface toolkit"
|
108 |
+
dependencies = [
|
109 |
+
"colorama; platform_system == \"Windows\"",
|
110 |
+
]
|
111 |
+
files = [
|
112 |
+
{file = "click-8.1.7-py3-none-any.whl", hash = "sha256:ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28"},
|
113 |
+
{file = "click-8.1.7.tar.gz", hash = "sha256:ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de"},
|
114 |
+
]
|
115 |
+
|
116 |
[[package]]
|
117 |
name = "colorama"
|
118 |
version = "0.4.6"
|
|
|
123 |
{file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"},
|
124 |
]
|
125 |
|
126 |
+
[[package]]
|
127 |
+
name = "fastapi"
|
128 |
+
version = "0.109.0"
|
129 |
+
requires_python = ">=3.8"
|
130 |
+
summary = "FastAPI framework, high performance, easy to learn, fast to code, ready for production"
|
131 |
+
dependencies = [
|
132 |
+
"pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4",
|
133 |
+
"starlette<0.36.0,>=0.35.0",
|
134 |
+
"typing-extensions>=4.8.0",
|
135 |
+
]
|
136 |
+
files = [
|
137 |
+
{file = "fastapi-0.109.0-py3-none-any.whl", hash = "sha256:8c77515984cd8e8cfeb58364f8cc7a28f0692088475e2614f7bf03275eba9093"},
|
138 |
+
{file = "fastapi-0.109.0.tar.gz", hash = "sha256:b978095b9ee01a5cf49b19f4bc1ac9b8ca83aa076e770ef8fd9af09a2b88d191"},
|
139 |
+
]
|
140 |
+
|
141 |
[[package]]
|
142 |
name = "filelock"
|
143 |
version = "3.13.1"
|
|
|
483 |
{file = "PyAudio-0.2.14.tar.gz", hash = "sha256:78dfff3879b4994d1f4fc6485646a57755c6ee3c19647a491f790a0895bd2f87"},
|
484 |
]
|
485 |
|
486 |
+
[[package]]
|
487 |
+
name = "pydantic"
|
488 |
+
version = "2.5.3"
|
489 |
+
requires_python = ">=3.7"
|
490 |
+
summary = "Data validation using Python type hints"
|
491 |
+
dependencies = [
|
492 |
+
"annotated-types>=0.4.0",
|
493 |
+
"pydantic-core==2.14.6",
|
494 |
+
"typing-extensions>=4.6.1",
|
495 |
+
]
|
496 |
+
files = [
|
497 |
+
{file = "pydantic-2.5.3-py3-none-any.whl", hash = "sha256:d0caf5954bee831b6bfe7e338c32b9e30c85dfe080c843680783ac2b631673b4"},
|
498 |
+
{file = "pydantic-2.5.3.tar.gz", hash = "sha256:b3ef57c62535b0941697cce638c08900d87fcb67e29cfa99e8a68f747f393f7a"},
|
499 |
+
]
|
500 |
+
|
501 |
+
[[package]]
|
502 |
+
name = "pydantic-core"
|
503 |
+
version = "2.14.6"
|
504 |
+
requires_python = ">=3.7"
|
505 |
+
summary = ""
|
506 |
+
dependencies = [
|
507 |
+
"typing-extensions!=4.7.0,>=4.6.0",
|
508 |
+
]
|
509 |
+
files = [
|
510 |
+
{file = "pydantic_core-2.14.6-cp311-cp311-macosx_10_7_x86_64.whl", hash = "sha256:dea7fcd62915fb150cdc373212141a30037e11b761fbced340e9db3379b892d4"},
|
511 |
+
{file = "pydantic_core-2.14.6-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:ffff855100bc066ff2cd3aa4a60bc9534661816b110f0243e59503ec2df38421"},
|
512 |
+
{file = "pydantic_core-2.14.6-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1b027c86c66b8627eb90e57aee1f526df77dc6d8b354ec498be9a757d513b92b"},
|
513 |
+
{file = "pydantic_core-2.14.6-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:00b1087dabcee0b0ffd104f9f53d7d3eaddfaa314cdd6726143af6bc713aa27e"},
|
514 |
+
{file = "pydantic_core-2.14.6-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:75ec284328b60a4e91010c1acade0c30584f28a1f345bc8f72fe8b9e46ec6a96"},
|
515 |
+
{file = "pydantic_core-2.14.6-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7e1f4744eea1501404b20b0ac059ff7e3f96a97d3e3f48ce27a139e053bb370b"},
|
516 |
+
{file = "pydantic_core-2.14.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b2602177668f89b38b9f84b7b3435d0a72511ddef45dc14446811759b82235a1"},
|
517 |
+
{file = "pydantic_core-2.14.6-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:6c8edaea3089bf908dd27da8f5d9e395c5b4dc092dbcce9b65e7156099b4b937"},
|
518 |
+
{file = "pydantic_core-2.14.6-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:478e9e7b360dfec451daafe286998d4a1eeaecf6d69c427b834ae771cad4b622"},
|
519 |
+
{file = "pydantic_core-2.14.6-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:b6ca36c12a5120bad343eef193cc0122928c5c7466121da7c20f41160ba00ba2"},
|
520 |
+
{file = "pydantic_core-2.14.6-cp311-none-win32.whl", hash = "sha256:2b8719037e570639e6b665a4050add43134d80b687288ba3ade18b22bbb29dd2"},
|
521 |
+
{file = "pydantic_core-2.14.6-cp311-none-win_amd64.whl", hash = "sha256:78ee52ecc088c61cce32b2d30a826f929e1708f7b9247dc3b921aec367dc1b23"},
|
522 |
+
{file = "pydantic_core-2.14.6-cp311-none-win_arm64.whl", hash = "sha256:a19b794f8fe6569472ff77602437ec4430f9b2b9ec7a1105cfd2232f9ba355e6"},
|
523 |
+
{file = "pydantic_core-2.14.6-cp312-cp312-macosx_10_7_x86_64.whl", hash = "sha256:667aa2eac9cd0700af1ddb38b7b1ef246d8cf94c85637cbb03d7757ca4c3fdec"},
|
524 |
+
{file = "pydantic_core-2.14.6-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:cdee837710ef6b56ebd20245b83799fce40b265b3b406e51e8ccc5b85b9099b7"},
|
525 |
+
{file = "pydantic_core-2.14.6-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2c5bcf3414367e29f83fd66f7de64509a8fd2368b1edf4351e862910727d3e51"},
|
526 |
+
{file = "pydantic_core-2.14.6-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:26a92ae76f75d1915806b77cf459811e772d8f71fd1e4339c99750f0e7f6324f"},
|
527 |
+
{file = "pydantic_core-2.14.6-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a983cca5ed1dd9a35e9e42ebf9f278d344603bfcb174ff99a5815f953925140a"},
|
528 |
+
{file = "pydantic_core-2.14.6-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cb92f9061657287eded380d7dc455bbf115430b3aa4741bdc662d02977e7d0af"},
|
529 |
+
{file = "pydantic_core-2.14.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e4ace1e220b078c8e48e82c081e35002038657e4b37d403ce940fa679e57113b"},
|
530 |
+
{file = "pydantic_core-2.14.6-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:ef633add81832f4b56d3b4c9408b43d530dfca29e68fb1b797dcb861a2c734cd"},
|
531 |
+
{file = "pydantic_core-2.14.6-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:7e90d6cc4aad2cc1f5e16ed56e46cebf4877c62403a311af20459c15da76fd91"},
|
532 |
+
{file = "pydantic_core-2.14.6-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:e8a5ac97ea521d7bde7621d86c30e86b798cdecd985723c4ed737a2aa9e77d0c"},
|
533 |
+
{file = "pydantic_core-2.14.6-cp312-none-win32.whl", hash = "sha256:f27207e8ca3e5e021e2402ba942e5b4c629718e665c81b8b306f3c8b1ddbb786"},
|
534 |
+
{file = "pydantic_core-2.14.6-cp312-none-win_amd64.whl", hash = "sha256:b3e5fe4538001bb82e2295b8d2a39356a84694c97cb73a566dc36328b9f83b40"},
|
535 |
+
{file = "pydantic_core-2.14.6-cp312-none-win_arm64.whl", hash = "sha256:64634ccf9d671c6be242a664a33c4acf12882670b09b3f163cd00a24cffbd74e"},
|
536 |
+
{file = "pydantic_core-2.14.6-pp310-pypy310_pp73-macosx_10_7_x86_64.whl", hash = "sha256:d5c28525c19f5bb1e09511669bb57353d22b94cf8b65f3a8d141c389a55dec95"},
|
537 |
+
{file = "pydantic_core-2.14.6-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:78d0768ee59baa3de0f4adac9e3748b4b1fffc52143caebddfd5ea2961595277"},
|
538 |
+
{file = "pydantic_core-2.14.6-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8b93785eadaef932e4fe9c6e12ba67beb1b3f1e5495631419c784ab87e975670"},
|
539 |
+
{file = "pydantic_core-2.14.6-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a874f21f87c485310944b2b2734cd6d318765bcbb7515eead33af9641816506e"},
|
540 |
+
{file = "pydantic_core-2.14.6-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:b89f4477d915ea43b4ceea6756f63f0288941b6443a2b28c69004fe07fde0d0d"},
|
541 |
+
{file = "pydantic_core-2.14.6-pp310-pypy310_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:172de779e2a153d36ee690dbc49c6db568d7b33b18dc56b69a7514aecbcf380d"},
|
542 |
+
{file = "pydantic_core-2.14.6-pp310-pypy310_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:dfcebb950aa7e667ec226a442722134539e77c575f6cfaa423f24371bb8d2e94"},
|
543 |
+
{file = "pydantic_core-2.14.6-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:55a23dcd98c858c0db44fc5c04fc7ed81c4b4d33c653a7c45ddaebf6563a2f66"},
|
544 |
+
{file = "pydantic_core-2.14.6-pp37-pypy37_pp73-macosx_10_7_x86_64.whl", hash = "sha256:4241204e4b36ab5ae466ecec5c4c16527a054c69f99bba20f6f75232a6a534e2"},
|
545 |
+
{file = "pydantic_core-2.14.6-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e574de99d735b3fc8364cba9912c2bec2da78775eba95cbb225ef7dda6acea24"},
|
546 |
+
{file = "pydantic_core-2.14.6-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1302a54f87b5cd8528e4d6d1bf2133b6aa7c6122ff8e9dc5220fbc1e07bffebd"},
|
547 |
+
{file = "pydantic_core-2.14.6-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:f8e81e4b55930e5ffab4a68db1af431629cf2e4066dbdbfef65348b8ab804ea8"},
|
548 |
+
{file = "pydantic_core-2.14.6-pp37-pypy37_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:c99462ffc538717b3e60151dfaf91125f637e801f5ab008f81c402f1dff0cd0f"},
|
549 |
+
{file = "pydantic_core-2.14.6-pp37-pypy37_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:e4cf2d5829f6963a5483ec01578ee76d329eb5caf330ecd05b3edd697e7d768a"},
|
550 |
+
{file = "pydantic_core-2.14.6-pp38-pypy38_pp73-macosx_10_7_x86_64.whl", hash = "sha256:cf10b7d58ae4a1f07fccbf4a0a956d705356fea05fb4c70608bb6fa81d103cda"},
|
551 |
+
{file = "pydantic_core-2.14.6-pp38-pypy38_pp73-macosx_11_0_arm64.whl", hash = "sha256:399ac0891c284fa8eb998bcfa323f2234858f5d2efca3950ae58c8f88830f145"},
|
552 |
+
{file = "pydantic_core-2.14.6-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9c6a5c79b28003543db3ba67d1df336f253a87d3112dac3a51b94f7d48e4c0e1"},
|
553 |
+
{file = "pydantic_core-2.14.6-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:599c87d79cab2a6a2a9df4aefe0455e61e7d2aeede2f8577c1b7c0aec643ee8e"},
|
554 |
+
{file = "pydantic_core-2.14.6-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:43e166ad47ba900f2542a80d83f9fc65fe99eb63ceec4debec160ae729824052"},
|
555 |
+
{file = "pydantic_core-2.14.6-pp38-pypy38_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:3a0b5db001b98e1c649dd55afa928e75aa4087e587b9524a4992316fa23c9fba"},
|
556 |
+
{file = "pydantic_core-2.14.6-pp38-pypy38_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:747265448cb57a9f37572a488a57d873fd96bf51e5bb7edb52cfb37124516da4"},
|
557 |
+
{file = "pydantic_core-2.14.6-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:7ebe3416785f65c28f4f9441e916bfc8a54179c8dea73c23023f7086fa601c5d"},
|
558 |
+
{file = "pydantic_core-2.14.6-pp39-pypy39_pp73-macosx_10_7_x86_64.whl", hash = "sha256:86c963186ca5e50d5c8287b1d1c9d3f8f024cbe343d048c5bd282aec2d8641f2"},
|
559 |
+
{file = "pydantic_core-2.14.6-pp39-pypy39_pp73-macosx_11_0_arm64.whl", hash = "sha256:e0641b506486f0b4cd1500a2a65740243e8670a2549bb02bc4556a83af84ae03"},
|
560 |
+
{file = "pydantic_core-2.14.6-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:71d72ca5eaaa8d38c8df16b7deb1a2da4f650c41b58bb142f3fb75d5ad4a611f"},
|
561 |
+
{file = "pydantic_core-2.14.6-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:27e524624eace5c59af499cd97dc18bb201dc6a7a2da24bfc66ef151c69a5f2a"},
|
562 |
+
{file = "pydantic_core-2.14.6-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a3dde6cac75e0b0902778978d3b1646ca9f438654395a362cb21d9ad34b24acf"},
|
563 |
+
{file = "pydantic_core-2.14.6-pp39-pypy39_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:00646784f6cd993b1e1c0e7b0fdcbccc375d539db95555477771c27555e3c556"},
|
564 |
+
{file = "pydantic_core-2.14.6-pp39-pypy39_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:23598acb8ccaa3d1d875ef3b35cb6376535095e9405d91a3d57a8c7db5d29341"},
|
565 |
+
{file = "pydantic_core-2.14.6-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:7f41533d7e3cf9520065f610b41ac1c76bc2161415955fbcead4981b22c7611e"},
|
566 |
+
{file = "pydantic_core-2.14.6.tar.gz", hash = "sha256:1fd0c1d395372843fba13a51c28e3bb9d59bd7aebfeb17358ffaaa1e4dbbe948"},
|
567 |
+
]
|
568 |
+
|
569 |
[[package]]
|
570 |
name = "pyyaml"
|
571 |
version = "6.0.1"
|
|
|
726 |
{file = "SpeechRecognition-3.10.1.tar.gz", hash = "sha256:718731886b7836e20a06b9a2c6cace12a9e130971bb6af1b1dd130b22bad9f82"},
|
727 |
]
|
728 |
|
729 |
+
[[package]]
|
730 |
+
name = "sse-starlette"
|
731 |
+
version = "1.8.2"
|
732 |
+
requires_python = ">=3.8"
|
733 |
+
summary = "SSE plugin for Starlette"
|
734 |
+
dependencies = [
|
735 |
+
"anyio",
|
736 |
+
"fastapi",
|
737 |
+
"starlette",
|
738 |
+
"uvicorn",
|
739 |
+
]
|
740 |
+
files = [
|
741 |
+
{file = "sse_starlette-1.8.2-py3-none-any.whl", hash = "sha256:70cc7ef5aca4abe8a25dec1284cce4fe644dd7bf0c406d3e852e516092b7f849"},
|
742 |
+
{file = "sse_starlette-1.8.2.tar.gz", hash = "sha256:e0f9b8dec41adc092a0a6e0694334bd3cfd3084c44c497a6ebc1fb4bdd919acd"},
|
743 |
+
]
|
744 |
+
|
745 |
+
[[package]]
|
746 |
+
name = "starlette"
|
747 |
+
version = "0.35.1"
|
748 |
+
requires_python = ">=3.8"
|
749 |
+
summary = "The little ASGI library that shines."
|
750 |
+
dependencies = [
|
751 |
+
"anyio<5,>=3.4.0",
|
752 |
+
]
|
753 |
+
files = [
|
754 |
+
{file = "starlette-0.35.1-py3-none-any.whl", hash = "sha256:50bbbda9baa098e361f398fda0928062abbaf1f54f4fadcbe17c092a01eb9a25"},
|
755 |
+
{file = "starlette-0.35.1.tar.gz", hash = "sha256:3e2639dac3520e4f58734ed22553f950d3f3cb1001cd2eaac4d57e8cdc5f66bc"},
|
756 |
+
]
|
757 |
+
|
758 |
[[package]]
|
759 |
name = "sympy"
|
760 |
version = "1.12"
|
|
|
946 |
{file = "urllib3-2.1.0-py3-none-any.whl", hash = "sha256:55901e917a5896a349ff771be919f8bd99aff50b79fe58fec595eb37bbc56bb3"},
|
947 |
{file = "urllib3-2.1.0.tar.gz", hash = "sha256:df7aa8afb0148fa78488e7899b2c59b5f4ffcfa82e6c54ccb9dd37c1d7b52d54"},
|
948 |
]
|
949 |
+
|
950 |
+
[[package]]
|
951 |
+
name = "uvicorn"
|
952 |
+
version = "0.26.0"
|
953 |
+
requires_python = ">=3.8"
|
954 |
+
summary = "The lightning-fast ASGI server."
|
955 |
+
dependencies = [
|
956 |
+
"click>=7.0",
|
957 |
+
"h11>=0.8",
|
958 |
+
]
|
959 |
+
files = [
|
960 |
+
{file = "uvicorn-0.26.0-py3-none-any.whl", hash = "sha256:cdb58ef6b8188c6c174994b2b1ba2150a9a8ae7ea5fb2f1b856b94a815d6071d"},
|
961 |
+
{file = "uvicorn-0.26.0.tar.gz", hash = "sha256:48bfd350fce3c5c57af5fb4995fded8fb50da3b4feb543eb18ad7e0d54589602"},
|
962 |
+
]
|
client/pyproject.toml
CHANGED
@@ -11,6 +11,9 @@ dependencies = [
|
|
11 |
"SpeechRecognition>=3.10.1",
|
12 |
"transformers[torch]>=4.36.2",
|
13 |
"httpx>=0.26.0",
|
|
|
|
|
|
|
14 |
]
|
15 |
requires-python = ">=3.11"
|
16 |
readme = "README.md"
|
|
|
11 |
"SpeechRecognition>=3.10.1",
|
12 |
"transformers[torch]>=4.36.2",
|
13 |
"httpx>=0.26.0",
|
14 |
+
"starlette>=0.35.1",
|
15 |
+
"uvicorn>=0.26.0",
|
16 |
+
"sse-starlette>=1.8.2",
|
17 |
]
|
18 |
requires-python = ">=3.11"
|
19 |
readme = "README.md"
|
client/src/main.py
CHANGED
@@ -1,3 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import numpy as np
|
2 |
import time
|
3 |
import os
|
@@ -100,6 +105,28 @@ def main():
|
|
100 |
# print(sentence.text) # noqa: T201
|
101 |
break
|
102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
|
104 |
if __name__ == '__main__':
|
105 |
-
|
|
|
|
|
|
|
|
1 |
+
from starlette.applications import Starlette
|
2 |
+
from starlette.routing import Route
|
3 |
+
from sse_starlette.sse import EventSourceResponse
|
4 |
+
import uvicorn
|
5 |
+
import asyncio
|
6 |
import numpy as np
|
7 |
import time
|
8 |
import os
|
|
|
105 |
# print(sentence.text) # noqa: T201
|
106 |
break
|
107 |
|
108 |
+
async def numbers(minimum, maximum):
|
109 |
+
for i in range(minimum, maximum + 1):
|
110 |
+
await asyncio.sleep(0.9)
|
111 |
+
yield dict(data=i)
|
112 |
+
|
113 |
+
async def sse(request):
|
114 |
+
generator = numbers(1, 5)
|
115 |
+
return EventSourceResponse(generator)
|
116 |
+
|
117 |
+
routes = [
|
118 |
+
Route("/test", endpoint=sse)
|
119 |
+
]
|
120 |
+
|
121 |
+
app = Starlette(debug=True, routes=routes)
|
122 |
+
|
123 |
+
|
124 |
+
def server():
|
125 |
+
uvicorn.run(app, host="0.0.0.0", port=5555, log_level='info')
|
126 |
+
|
127 |
|
128 |
if __name__ == '__main__':
|
129 |
+
if os.getenv('PROCESS' 'listener'):
|
130 |
+
main()
|
131 |
+
elif os.getenv('PROCESS' 'server'):
|
132 |
+
server()
|
display/.tool-versions
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
nodejs 18.17.1
|
display/index.html
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html>
|
3 |
+
<head>
|
4 |
+
<title>Display</title>
|
5 |
+
</head>
|
6 |
+
<body>
|
7 |
+
<h1>
|
8 |
+
Display text
|
9 |
+
</h1>
|
10 |
+
|
11 |
+
<script>
|
12 |
+
window.onload = () => {
|
13 |
+
const eventSource = new EventSource('/stream');
|
14 |
+
|
15 |
+
}
|
16 |
+
</script>
|
17 |
+
</body>
|
18 |
+
</html>
|
display/package.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "display",
|
3 |
+
"version": "1.0.0",
|
4 |
+
"description": "",
|
5 |
+
"main": "index.js",
|
6 |
+
"scripts": {
|
7 |
+
"test": "echo \"Error: no test specified\" && exit 1"
|
8 |
+
},
|
9 |
+
"keywords": [],
|
10 |
+
"author": "",
|
11 |
+
"license": "ISC"
|
12 |
+
}
|