BigSalmon2/Flowberta3

1

stars

35

commits

HTML

primary language

Jul 27, 2021

updated

README

gpt2_story

This GPT2-story model generates genre story text.
When you enter text at the beginning of the story, the model gives you the rest of the story as long as you want.

How to use

This API has 2 routing address

# POST parameter

/long
text : begining of the text you want to generate
number_samples : the number of sentence that will be generated
length : the length of each sentence

/short
text : begining of the text you want to generate
number_samples : the number of word that will be generated

# With CLI :

curl --location --request POST 'https://main-gpt2-story-gmlee329.endpoint.ainize.ai/gpt2-story/long' --form 'text=once upon a time' --form 'num_samples=5' --form 'length=10'

curl --location --request POST 'https://main-gpt2-story-gmlee329.endpoint.ainize.ai/gpt2-story/short' --form 'text=once upon a time' --form 'num_samples=5'

# With swagger :

You can test this API with swagger.yaml on swagger editor

Contributors

gmlee329

21 commits

BigSalmon2

14 commits

BigSalmon2/Flowberta3

1

stars

35

commits

HTML

primary language

Jul 27, 2021

updated

README

gpt2_story

This GPT2-story model generates genre story text.
When you enter text at the beginning of the story, the model gives you the rest of the story as long as you want.

How to use

This API has 2 routing address

# POST parameter

/long
text : begining of the text you want to generate
number_samples : the number of sentence that will be generated
length : the length of each sentence

/short
text : begining of the text you want to generate
number_samples : the number of word that will be generated

# With CLI :

curl --location --request POST 'https://main-gpt2-story-gmlee329.endpoint.ainize.ai/gpt2-story/long' --form 'text=once upon a time' --form 'num_samples=5' --form 'length=10'

curl --location --request POST 'https://main-gpt2-story-gmlee329.endpoint.ainize.ai/gpt2-story/short' --form 'text=once upon a time' --form 'num_samples=5'

# With swagger :

You can test this API with swagger.yaml on swagger editor

Contributors

gmlee329

21 commits

BigSalmon2

14 commits

Languages

HTML

52.0%

Python

45.3%

Dockerfile

2.6%