mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 12:19:06 +00:00
build: move to uv (#488)
* build: move to uv * build: add packages declaration * build: move to python 3.12, as sentencespiece does not work on 3.13 * ci: remove pre-commit check, will be done in another branch. * ci: fix name checkout * ci: update lock and dockerfile * test: remove event_loop, not needed in python 3.12 * test: updated test due to av returning AudioFrame with 4096 samples instead of 1024 * build: prevent using fastapi cli, because there is no way to set default port I don't want to pass --port 1250 every time, so back on previous approach. I deactivated auto-reload for production. * ci: remove main.py * test: fix quirck with httpx
This commit is contained in:
16
README.md
16
README.md
@@ -106,25 +106,19 @@ yarn openapi
|
||||
|
||||
Start with `cd server`.
|
||||
|
||||
**Installation**
|
||||
|
||||
```bash
|
||||
poetry install
|
||||
```
|
||||
|
||||
**Run in development mode**
|
||||
|
||||
```bash
|
||||
docker compose up -d redis
|
||||
|
||||
# on the first run, or if the schemas changed
|
||||
poetry run alembic upgrade head
|
||||
uv run alembic upgrade head
|
||||
|
||||
# start the worker
|
||||
poetry run celery -A reflector.worker.app worker --loglevel=info
|
||||
uv run celery -A reflector.worker.app worker --loglevel=info
|
||||
|
||||
# start the app
|
||||
poetry run python -m reflector.app
|
||||
uv run -m reflector.app --reload
|
||||
```
|
||||
|
||||
Then fill `.env` with the omitted values (ask in Zulip).
|
||||
@@ -134,7 +128,7 @@ Then fill `.env` with the omitted values (ask in Zulip).
|
||||
For crontab (only healthcheck for now), start the celery beat (you don't need it on your local dev environment):
|
||||
|
||||
```bash
|
||||
poetry run celery -A reflector.worker.app beat
|
||||
uv run celery -A reflector.worker.app beat
|
||||
```
|
||||
|
||||
### GPU models
|
||||
@@ -153,5 +147,5 @@ To deploy llm changes to modal, you need:
|
||||
You can manually process an audio file by calling the process tool:
|
||||
|
||||
```bash
|
||||
poetry run python -m reflector.tools.process path/to/audio.wav
|
||||
uv run python -m reflector.tools.process path/to/audio.wav
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user