Spaces:
Running
Running
File size: 801 Bytes
2118051 628770d 2118051 | 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 | ---
title: Btc Model Api
emoji: 👀
colorFrom: green
colorTo: indigo
sdk: docker
pinned: false
---
---
title: BTC Prediction API
emoji: 🪙
colorFrom: yellow
colorTo: orange
sdk: docker
pinned: false
---
# BTC Prediction API
API สำหรับทำนายราคา Bitcoin โดยใช้ Chronos model
## Endpoints
- `GET /` - ข้อมูล API
- `GET /health` - ตรวจสอบสถานะ
- `POST /predict` - ทำนายราคา BTC วันถัดไป
## Usage
```python
import requests
response = requests.post(
"https://YOUR-SPACE-NAME.hf.space/predict",
json={"start_date": "2020-01-01", "window_size": 256}
)
print(response.json())
```
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|