Spaces:
Sleeping
Sleeping
File size: 1,702 Bytes
8b30412 |
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 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# Installation
## Stable release
To install chatassistant_retail, run this command in your terminal:
```sh
uv add chatassistant_retail
```
Or if you prefer to use `pip`:
```sh
pip install chatassistant_retail
```
## From source
The source files for chatassistant_retail can be downloaded from the [Github repo](https://github.com/samir72/chatassistant_retail).
You can either clone the public repository:
```sh
git clone git://github.com/samir72/chatassistant_retail
```
Or download the [tarball](https://github.com/samir72/chatassistant_retail/tarball/master):
```sh
curl -OJL https://github.com/samir72/chatassistant_retail/tarball/master
```
Once you have a copy of the source, you can install it with:
```sh
cd chatassistant_retail
uv pip install -e .
```
## Sample Data
As of version 0.1.1, sample data files are **included in the repository** (in the `data/` directory). You don't need to generate them manually unless you want custom data.
Files included:
- `data/products.json` - Product inventory (220 KB)
- `data/sales_history.json` - Transaction history (3.6 MB)
- `data/purchase_orders.json` - Sample POs (1.3 KB)
To regenerate with custom parameters:
```bash
python scripts/generate_sample_data.py
```
## HuggingFace Spaces Deployment Notes
If deploying to HuggingFace Spaces, note that the installation process differs:
**Local Development:**
```bash
pip install -e .
```
**HuggingFace Spaces:**
- Uses sys.path manipulation in `app.py` instead of formal installation
- Dependencies install from `requirements.txt` (no package self-installation)
- This is a workaround for HF Spaces' Docker build constraints
The application works identically in both environments.
|