Poowanath commited on
Commit
628770d
·
verified ·
1 Parent(s): 01e4ebe

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +32 -0
README.md CHANGED
@@ -7,4 +7,36 @@ sdk: docker
7
  pinned: false
8
  ---
9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
7
  pinned: false
8
  ---
9
 
10
+ ---
11
+ title: BTC Prediction API
12
+ emoji: 🪙
13
+ colorFrom: yellow
14
+ colorTo: orange
15
+ sdk: docker
16
+ pinned: false
17
+ ---
18
+
19
+ # BTC Prediction API
20
+
21
+ API สำหรับทำนายราคา Bitcoin โดยใช้ Chronos model
22
+
23
+ ## Endpoints
24
+
25
+ - `GET /` - ข้อมูล API
26
+ - `GET /health` - ตรวจสอบสถานะ
27
+ - `POST /predict` - ทำนายราคา BTC วันถัดไป
28
+
29
+ ## Usage
30
+
31
+ ```python
32
+ import requests
33
+
34
+ response = requests.post(
35
+ "https://YOUR-SPACE-NAME.hf.space/predict",
36
+ json={"start_date": "2020-01-01", "window_size": 256}
37
+ )
38
+ print(response.json())
39
+ ```
40
+
41
+
42
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference