Turkeyengineer commited on
Commit
a357fc2
·
verified ·
1 Parent(s): 4e7635e

Create openapi.yaml

Browse files
Files changed (1) hide show
  1. openapi.yaml +38 -0
openapi.yaml ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ openapi: 3.1.0
2
+ info:
3
+ title: TurkeyEngineer Segment API
4
+ version: 1.0.0
5
+ description: 呼叫 Hugging Face 上的斷詞 API,將中文句子依字分開。
6
+ servers:
7
+ - url: https://turkeyengineer-test.hf.space
8
+ paths:
9
+ /run/predict:
10
+ post:
11
+ operationId: run_predict
12
+ summary: 將中文句子依字分開
13
+ requestBody:
14
+ required: true
15
+ content:
16
+ application/json:
17
+ schema:
18
+ type: object
19
+ properties:
20
+ data:
21
+ type: array
22
+ items:
23
+ type: string
24
+ description: 要處理的中文句子陣列
25
+ required:
26
+ - data
27
+ responses:
28
+ '200':
29
+ description: 成功的回應分詞結果
30
+ content:
31
+ application/json:
32
+ schema:
33
+ type: object
34
+ properties:
35
+ data:
36
+ type: array
37
+ items:
38
+ type: string