mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-20 11:57:03 -04:00
[cmd] text2image
This commit is contained in:
parent
a3a557379a
commit
e3bfaa8803
3 changed files with 46 additions and 0 deletions
|
@ -19,6 +19,7 @@ const Api = Object.freeze({
|
|||
|
||||
IMAGE_DEEPDREAM: '/image/deepdream',
|
||||
IMAGE_SUPERRESOLUTION: '/image/superresolution',
|
||||
IMAGE_TEXT2IMAGE: '/image/text2image',
|
||||
IMAGE_WAIFU2X: '/image/waifu2x',
|
||||
|
||||
PHOTOFUNIA_RETRO_WAVE: '/photofunia/retro-wave',
|
||||
|
|
|
@ -180,6 +180,12 @@ module.exports.superresolution = async function(context, url){
|
|||
})
|
||||
}
|
||||
|
||||
module.exports.text2image = async function(context, text){
|
||||
return await request(Api.IMAGE_TEXT2IMAGE, "GET", {}, {
|
||||
text: text
|
||||
})
|
||||
}
|
||||
|
||||
module.exports.imtranslator = async function(context, text, voice){
|
||||
return await request(Api.TTS_IMTRANSLATOR, "GET", {}, {
|
||||
text: text,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue