X-Pipe/flash
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
Then, create a new Python virtual environment. The command below creates an environment in .venv, and activates it:
python -m venv .venv
source .venv/bin/activateif you are in windows, use the following to activate your virtual environment:
.venv\scripts\activateInstall the required dependencies (this will also install gpt-index through pip install -e . so that you can start developing on it):
pip install -r requirements.txtNow you should be set!
Validating your Change
Let's make sure to format/lint our change. For bigger changes, let's also make sure to test it and perhaps create an example notebook.
Formatting/Linting
You can format and lint your changes with the following commands in the root directory:
make format; make lintYou can also make use of our pre-commit hooks by setting up git hook scripts:
pre-commit installWe run an assortment of linters: black, ruff, mypy.
