Spaces:
Running
Running
metadata
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 /- ข้อมูล APIGET /health- ตรวจสอบสถานะPOST /predict- ทำนายราคา BTC วันถัดไป
Usage
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