Spaces:
Runtime error
Runtime error
File size: 1,239 Bytes
1eacdbf 6628fd9 1eacdbf 6628fd9 1eacdbf 6628fd9 |
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 54 55 56 57 |
---
title: Flash
emoji: π
colorFrom: gray
colorTo: purple
sdk: streamlit
sdk_version: 1.21.0
app_file: app.py
pinned: false
license: apache-2.0
---
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`. |