-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathswagger.yaml
125 lines (109 loc) · 4.2 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
openapi: 3.0.0 # Open api version
info:
title: GPT-2 everytime
version: "v0.1"
contact:
name: AInizer - Lee hoseop
description: |
This app is generate everytime community style korean text using GPT-2 model.
---
How to use:
* First, Fill what the character will say in text. This will be base of script.
* Second, Choose text style category.
* And then, Fill number in length. Text is created as long as "length". I recommend between 100 and 300.
* If length is so big, generate time will be long.
---
And you can use this in [demo page](https://master-gpt2-everytime-fpem123.endpoint.ainize.ai/).
Original github >> [jason9693/UCK-GPT2](https://github.com/jason9693/UCK-GPT2)
Original colab >> [Colab](https://colab.research.google.com/drive/1p6DIxsesi3eJNPwFwvMw0MeM5LkSGoPW?usp=sharing&fbclid=IwAR1kejoqnhL738Za3M_BsGnjjJrayGq5AG3hH8UUBX3dRwCK6JvT4loZ88A#scrollTo=fJWeAhLF7rdh)
servers:
- url: https://master-gpt2-everytime-fpem123.endpoint.ainize.ai/
paths:
/everytime/natural:
post:
requestBody:
required: true
description: |
This request will generate everytime community style korean text using GPT-2 model.
Request body example
text: 님들 오늘 수업
category: 숭실대 에타
length: 200
curl example
curl -X POST "https://master-gpt2-everytime-fpem123.endpoint.ainize.ai/everytime/natural" -H "accept: application/json" -H "Content-Type: multipart/form-data" -F "text=님들 오늘 수업" -F "category=숭실대 에타" -F "length=200"
content:
multipart/form-data:
schema:
type: object
properties:
text:
type: string
description: "The base of generated text."
category:
type: string
enum: [대학생 잡담방, 숭실대 에타, 모두의 연애]
description: "The text style category."
length:
type: string
description: "The max size of generated text."
required:
- category
- 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"
/everytime/fix-length:
post:
requestBody:
required: true
description: |
This request will generate everytime community style korean text using GPT-2 model.
Request body example
text: 님들 오늘 수업
category: 대학생 잡담방
length: 200
curl example
curl -X POST "https://master-gpt2-everytime-fpem123.endpoint.ainize.ai/everytime/fix-length:" -H "accept: application/json" -H "Content-Type: multipart/form-data" -F "text=님들 오늘 수업" -F "category=대학생 잡담방" -F "length=200"
content:
multipart/form-data:
schema:
type: object
properties:
text:
type: string
description: "The base of generated text."
category:
type: string
enum: [대학생 잡담방, 숭실대 에타, 모두의 연애]
description: "The text style category."
length:
type: string
description: "The size of generated ext."
required:
- category
- 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"