Skip to content

Commit

Permalink
Merge pull request #19 from jonnyjohnson1/jonny/install-script2
Browse files Browse the repository at this point in the history
deployment: added all spacy models back in
  • Loading branch information
jonnyjohnson1 authored Nov 15, 2024
2 parents 9e28084 + 4fdb427 commit 382a59d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,15 @@ nix develop .#poetry
## Install Tips

### POSTGRES
- If postgres is already running, running the bin fails, shut it down first.
- If postgres is already running and running the bin fails, shut it down first.
- Nix will manage postgres' start/stop function itself when you use it, but if you have started the database elsewhere, it won't be able to manage it, and will fail to start up.

### NIXOS ERRORS
Updating Mac to Sequoia create an error:
error: the user '_nixbld1' in the group 'nixbld' does not exist

Fix it by running this code in your terminal `curl --proto '=https' --tlsv1.2 -sSf -L https://github.com/NixOS/nix/raw/master/scripts/sequoia-nixbld-user-migration.sh | bash -`


## Install Instructions
requires `brew install just`
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ aiokafka = "^0.11.0"
supabase = "^2.6.0"
psycopg2-binary = "^2.9.9"
en-core-web-sm = {url = "https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl"}
# en-core-web-lg = {url = "https://github.com/explosion/spacy-models/releases/download/en_core_web_lg-3.8.0/en_core_web_lg-3.8.0-py3-none-any.whl"}
# en-core-web-md = {url = "https://github.com/explosion/spacy-models/releases/download/en_core_web_md-3.8.0/en_core_web_md-3.8.0-py3-none-any.whl"}
# en-core-web-trf = {url = "https://github.com/explosion/spacy-models/releases/download/en_core_web_trf-3.8.0/en_core_web_trf-3.8.0-py3-none-any.whl"}
en-core-web-lg = {url = "https://github.com/explosion/spacy-models/releases/download/en_core_web_lg-3.8.0/en_core_web_lg-3.8.0-py3-none-any.whl"}
en-core-web-md = {url = "https://github.com/explosion/spacy-models/releases/download/en_core_web_md-3.8.0/en_core_web_md-3.8.0-py3-none-any.whl"}
en-core-web-trf = {url = "https://github.com/explosion/spacy-models/releases/download/en_core_web_trf-3.8.0/en_core_web_trf-3.8.0-py3-none-any.whl"}

[tool.poetry.group.dev.dependencies]
pytest = "^7.4.3"
Expand Down
4 changes: 2 additions & 2 deletions topos/api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def start_topos_api():
print("\033[92mINFO:\033[0m API docs available at: \033[1mhttp://0.0.0.0:13341/docs\033[0m")
uvicorn.run(app, host="0.0.0.0", port=13341)

def start_kafka_api():
def start_chat_server():
from ..chat_api.api import start_messenger_server
start_messenger_server()

Expand All @@ -60,7 +60,7 @@ def start_kafka_api():
def start_local_api():
global process1, process2
process1 = Process(target=start_topos_api)
process2 = Process(target=start_kafka_api)
process2 = Process(target=start_chat_server)
process1.start()
process2.start()
process1.join()
Expand Down

0 comments on commit 382a59d

Please sign in to comment.