update demo

This commit is contained in:
YerbaPage
2025-10-11 21:45:53 +08:00
parent a391badfe1
commit d2cc38ed96

View File

@@ -39,12 +39,14 @@ pip install -e .
## Quick Demo
We provide a simple demo (`demo.py`) to help you get started with LongCodeZip:
We provide a simple demo (`demo.py`) to help you get started with LongCodeZip.
```bash
python demo.py
```
The demo showcases both compression modes: coarse-grained compression (function-level selection only) and the full two-stage compression (with fine-grained token optimization). It demonstrates how LongCodeZip compresses a code file based on a given query and achieves different compression ratios.
## Basic Example
```python