Spaces:
Running on Zero
Running on Zero
Backtest Lab v1.0.0
Browse files- README.md +1 -2
- requirements.txt +16 -14
README.md
CHANGED
|
@@ -5,7 +5,6 @@ colorFrom: yellow
|
|
| 5 |
colorTo: gray
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: 5.49.1
|
| 8 |
-
python_version: "3.11"
|
| 9 |
app_file: app.py
|
| 10 |
pinned: true
|
| 11 |
license: apache-2.0
|
|
@@ -150,7 +149,7 @@ link — the store is public, so a duplicate reads the same data.
|
|
| 150 |
## Running locally
|
| 151 |
|
| 152 |
```bash
|
| 153 |
-
uv venv --python 3.
|
| 154 |
python app.py
|
| 155 |
```
|
| 156 |
|
|
|
|
| 5 |
colorTo: gray
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: 5.49.1
|
|
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: true
|
| 10 |
license: apache-2.0
|
|
|
|
| 149 |
## Running locally
|
| 150 |
|
| 151 |
```bash
|
| 152 |
+
uv venv --python 3.10 && uv pip install -r requirements.txt
|
| 153 |
python app.py
|
| 154 |
```
|
| 155 |
|
requirements.txt
CHANGED
|
@@ -1,34 +1,36 @@
|
|
| 1 |
-
# Backtest Lab — pinned
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
# UI
|
| 4 |
gradio[oauth]==5.49.1
|
| 5 |
plotly==6.9.0
|
| 6 |
|
| 7 |
# Engine
|
| 8 |
-
vectorbt==1.
|
| 9 |
-
numpy==2.
|
| 10 |
pandas==2.3.3
|
| 11 |
numba==0.67.0
|
| 12 |
-
scipy==1.
|
| 13 |
-
scikit-learn==1.
|
| 14 |
|
| 15 |
# Store
|
| 16 |
huggingface_hub==1.27.0
|
| 17 |
pyarrow==25.0.1
|
| 18 |
|
| 19 |
# Price providers
|
| 20 |
-
ccxt==4.5.
|
| 21 |
yfinance==1.6.0
|
| 22 |
requests==2.34.2
|
| 23 |
|
| 24 |
# Forecast adapters. Imported lazily inside ForecastAdapter.load(), so app boot
|
| 25 |
-
# never pays for them -- this keeps cold start fast
|
| 26 |
-
#
|
| 27 |
-
# ZeroGPU only accepts
|
| 28 |
-
# pinning outside that set puts the Space into CONFIG_ERROR.
|
| 29 |
torch==2.11.0
|
| 30 |
chronos-forecasting==2.3.1
|
| 31 |
-
|
| 32 |
-
# ZeroGPU runtime. Absent locally and on cpu-basic; extension.py degrades to a
|
| 33 |
-
# "coming soon" state when it cannot be imported.
|
| 34 |
-
spaces==0.44.1
|
|
|
|
| 1 |
+
# Backtest Lab — pinned to the exact versions the suite passes on, resolved
|
| 2 |
+
# against Python 3.10, which is what the ZeroGPU Space image provides.
|
| 3 |
+
#
|
| 4 |
+
# Two pins are dictated by the Space builder rather than by us:
|
| 5 |
+
# * vectorbt 1.1.0 requires Python >=3.11 and cannot install on the ZeroGPU
|
| 6 |
+
# image, so this is pinned to 1.0.0. All 190 tests pass on it.
|
| 7 |
+
# * `spaces` is injected by the ZeroGPU builder itself; pinning it here
|
| 8 |
+
# conflicts with the builder's own version, so it is deliberately absent.
|
| 9 |
|
| 10 |
# UI
|
| 11 |
gradio[oauth]==5.49.1
|
| 12 |
plotly==6.9.0
|
| 13 |
|
| 14 |
# Engine
|
| 15 |
+
vectorbt==1.0.0
|
| 16 |
+
numpy==2.2.6
|
| 17 |
pandas==2.3.3
|
| 18 |
numba==0.67.0
|
| 19 |
+
scipy==1.15.3
|
| 20 |
+
scikit-learn==1.7.2
|
| 21 |
|
| 22 |
# Store
|
| 23 |
huggingface_hub==1.27.0
|
| 24 |
pyarrow==25.0.1
|
| 25 |
|
| 26 |
# Price providers
|
| 27 |
+
ccxt==4.5.64
|
| 28 |
yfinance==1.6.0
|
| 29 |
requests==2.34.2
|
| 30 |
|
| 31 |
# Forecast adapters. Imported lazily inside ForecastAdapter.load(), so app boot
|
| 32 |
+
# never pays for them -- this keeps cold start fast while still letting the
|
| 33 |
+
# ZeroGPU extension path work when GPU hardware is attached.
|
| 34 |
+
# ZeroGPU only accepts torch 2.11.0 / 2.10.0 / 2.9.1 / 2.8.0.
|
|
|
|
| 35 |
torch==2.11.0
|
| 36 |
chronos-forecasting==2.3.1
|
|
|
|
|
|
|
|
|
|
|
|