-
Notifications
You must be signed in to change notification settings - Fork 3
/
Swagger.yaml
51 lines (47 loc) · 1.17 KB
/
Swagger.yaml
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
44
45
46
47
48
49
50
51
openapi: 3.0.1
info:
title: KoGPT2
version: 1.0.0
contact:
name: Changyeop
description: |
Generate Korean using KoGPT2 model
---
How to use:
* Fill the base text and length.
* If length is so big, generate time will be long.
---
servers:
- url: https://main-ko-gpt2-scy6500.endpoint.ainize.ai
paths:
/generate:
post:
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
text:
type: string
description: "The base of korean"
length:
type: string
description: "The length of text"
required:
- text
- length
responses: # Set response
'200':
description: "Successful Response"
content:
application/json:
schema:
type: object
'400':
description: "Bad Request Error"
'429':
description: "Too many requests"
'500':
description: "Server-side Error"