Spaces:
Runtime error
Runtime error
File size: 762 Bytes
a240da9 e6fd86e a240da9 e6fd86e a240da9 e6fd86e a240da9 66bc8ec |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# Dump your knowledge, let AI refine it
## Installation
Create a Python environment with Python 3.10+. Install the requirements and the package:
``` sh
python -m pip install -r requirements.txt
python -m pip install .
```
For development, instead do:
``` sh
python -m pip install -r requirements.txt
python -m pip install -r requirements-dev.txt
python -m pip install -e .
```
## Starting
In one terminal, start the background worker:
```sh
cd src
python worker.py
```
In another terminal, start the web server:
```sh
cd src
uvicorn webservice:app --reload --port 8080
```
For example requests, check `requests.org`.
## Checks
### Running tests
```sh
python -m pytest tests/
```
### Other
```sh
mypy src/
black src/ && black tests/
ruff src/
```
|