Description | generate mails samples from AI language model. | ||||||||||||||||||
Method | GET |
||||||||||||||||||
URL/Data Parameters |
|
||||||||||||||||||
Success Response |
Code: 200 OK Type: JSON Content: { "status": "success", "ai_results": [{"generated_text": "generated text","text_length": 753}] } |
||||||||||||||||||
Error Response |
Code: 400 Bad Request | 500 Internal Server Error Type: JSON Content: { "status": "FAIL", "error": "::string" } |
open your browser chrome or firefox
write in the url bar:
https://mail-generation-fguxvzvh6a-uc.a.run.app/generate?prompt=to&n_gen=3
open your browser chrome or firefox
write in the url bar:
https://mail-generation-fguxvzvh6a-uc.a.run.app/docs
run in the terminal
git clone https://github.com/zaghlol94/mail-generation-service.git
cd mail-generation-service
export $PORT=5000
sudo docker build -t email .
sudo docker run -p 5000:5000 email
open browser and write in the url:
http://0.0.0.0:5000/generate?prompt=to&n_gen=3
or
http://0.0.0.0:5000/docs