From 10d28da24548f5543ecd333aaf9c942b85cbf72b Mon Sep 17 00:00:00 2001 From: jonny <32085184+jonnyjohnson1@users.noreply.github.com> Date: Mon, 8 Jul 2024 13:13:45 -0500 Subject: [PATCH] quick toml update --- _conv_cache/cache__HiAIB1Ag6PFn.pkl | Bin 0 -> 753 bytes config.yaml | 1 + pyproject.toml | 4 ++++ topos/cli.py | 12 +++++++++++- topos/config.yaml | 2 +- 5 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 _conv_cache/cache__HiAIB1Ag6PFn.pkl create mode 100644 config.yaml diff --git a/_conv_cache/cache__HiAIB1Ag6PFn.pkl b/_conv_cache/cache__HiAIB1Ag6PFn.pkl new file mode 100644 index 0000000000000000000000000000000000000000..2b7383beb0b061d3826e9e887477d81d9b64da9c GIT binary patch literal 753 zcmb7?PiqrF7{;}xZc^$+Z{p!SDoCit)|MjMq-YW&O=}fIkaV*9W_RlDOgeuy1Pt`z z$pH_JcL|g%ZJ_(*83&FL{Xn-IzW0Xa}1&m^%d{;_Y zFQE+GDCS(BNbC_tlCh-uaMDx)o~Fo@8*O6a^SOgc%EMlQ87B5gVPG~PeRnW3-HtW0 zGT;Jj)Bkb!V$ESNB}Q@s`J*Pz9tzfzuH&!b_@X(par>c-FE#z|ANF@#g;Slyl=rUR z{3EFZT2L;j8W+M(A6o~7P)luKFzD)qh;K&^wiY@!#A3I$B7^07jnTNX#N}?Qm~jf( zTX(J-TpdOBxGoUJTmxl$nu;6`>2s|>#Rx75r6uqIa4nAG^r1Zf$*)2i0>WS@ct%46 zx7EWuy6Qi1#&f@etCbJmOoKZK{n|XiPirvL5j#!dnC82wfE2maD` P!mp#32Zhkl*RuK(j^rE* literal 0 HcmV?d00001 diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..8fde4f5 --- /dev/null +++ b/config.yaml @@ -0,0 +1 @@ +active_spacy_model: en_core_web_trf diff --git a/pyproject.toml b/pyproject.toml index 141cb6e..bac1edf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,6 +24,7 @@ emoji = "0.6.0" pyyaml = "6.0.1" python-dotenv = "1.0.0" openai = "1.30.4" +<<<<<<< Updated upstream neo4j = "^5.20.0" nltk = "^3.8.1" scikit-learn = "^1.5.0" @@ -38,6 +39,9 @@ pyjwt = "^2.8.0" python-multipart = "^0.0.9" pytest-asyncio = "^0.23.7" textblob = "^0.18.0.post0" +======= +tk = "0.1.0" +>>>>>>> Stashed changes [tool.poetry.group.dev.dependencies] pytest = "^7.4.3" diff --git a/topos/cli.py b/topos/cli.py index 56498b8..b6ade09 100644 --- a/topos/cli.py +++ b/topos/cli.py @@ -4,7 +4,7 @@ def main(): parser = argparse.ArgumentParser(description="CLI for my script") - parser.add_argument('command', choices=['run', 'set', 'chat'], help="Command to execute") + parser.add_argument('command', choices=['run', 'set', 'chat', 'zrok'], help="Command to execute") parser.add_argument('--web', action='store_true', help="Flag to run the server for web access") parser.add_argument('--local', action='store_true', help="Flag to run the server for local access (default)") parser.add_argument('--spacy', choices=['small', 'med', 'large', 'trf'], help="Specify Spacy model size (only for 'set' command)") @@ -30,6 +30,16 @@ def main(): from .chat_api import api api.start_chat() + if args.command == 'zrok': + """ + start the topos api chat server for clients to connect + """ + # start zrok server + import subprocess + # zrok share public http://0.0.0.0:13341 # the cli command + subprocess.run(['zrok', 'share', 'public', 'http://0.0.0.0:13341'], check=True) + + elif args.command == 'set': """ download Spacy model diff --git a/topos/config.yaml b/topos/config.yaml index 26ac73a..8fde4f5 100644 --- a/topos/config.yaml +++ b/topos/config.yaml @@ -1 +1 @@ -active_spacy_model: en_core_web_md +active_spacy_model: en_core_web_trf