Skip to content

gmlee329/gpt2_trump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gpt2_trump

This GPT2-trump model generates Donald Trump style tweets text.
When you enter text at the beginning of the tweets, the model gives you the rest of the tweets 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-trump-gmlee329.endpoint.ainize.ai/gpt2-trump/long' --form 'text=We have more cases' --form 'num_samples=5' --form 'length=10'

curl --location --request POST 'https://main-gpt2-trump-gmlee329.endpoint.ainize.ai/gpt2-trump/short' --form 'text=We have more cases' --form 'num_samples=5'

# With swagger :

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

About

This GPT2-trump model generates Donald trump's tweets style text. When you enter text for the beginning of the tweets, the model gives you the rest of the tweets as long as you want.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors