CoolFace
Apppublic

X-Pipe/flash

sourceHugging Faceapache-2.0updated 3y agoView on Hugging Face
0likes
App README

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:

bash
python -m venv .venv
source .venv/bin/activate

if you are in windows, use the following to activate your virtual environment:

bash
.venv\scripts\activate

Install the required dependencies (this will also install gpt-index through pip install -e . so that you can start developing on it):

bash
pip install -r requirements.txt

Now 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:

bash
make format; make lint

You can also make use of our pre-commit hooks by setting up git hook scripts:

bash
pre-commit install

We run an assortment of linters: black, ruff, mypy.