Spaces:
Runtime error
Runtime error
Update .well-known/openapi.yaml
Browse files- .well-known/openapi.yaml +5 -7
.well-known/openapi.yaml
CHANGED
@@ -2,15 +2,13 @@ openapi: 3.1.0
|
|
2 |
info:
|
3 |
title: TurkeyEngineer Segment API
|
4 |
version: 1.0.0
|
5 |
-
description:
|
6 |
servers:
|
7 |
- url: https://turkeyengineer-test.hf.space
|
8 |
-
description: Hugging Face Space hosting the segment API
|
9 |
paths:
|
10 |
-
|
11 |
-
/run_predict: # ✅ 使用正確的 API 路徑
|
12 |
post:
|
13 |
-
operationId: run_predict
|
14 |
summary: 將中文句子依字分開
|
15 |
requestBody:
|
16 |
required: true
|
@@ -23,12 +21,12 @@ paths:
|
|
23 |
type: array
|
24 |
items:
|
25 |
type: string
|
26 |
-
description:
|
27 |
required:
|
28 |
- data
|
29 |
responses:
|
30 |
'200':
|
31 |
-
description:
|
32 |
content:
|
33 |
application/json:
|
34 |
schema:
|
|
|
2 |
info:
|
3 |
title: TurkeyEngineer Segment API
|
4 |
version: 1.0.0
|
5 |
+
description: 提供 /run_predict 路由,將中文句子依字分開。
|
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
|
|
|
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:
|