Dream api
Project description
Hi there, I'm Wombo
I am a module for using wombo dream ai (neural network of image generation)
Mini Documentation
Asynchronous and synchronous module
from wombo import AsyncDream # async
from wombo import Dream # sync
Create a task
- since all actions are the same in both versions, I will consider only one module, namely the asynchronous
dream = AsyncDream()
task = await dream.create_task(prompt: str, style: int)
- The list of styles will be available via github
Check a task (complite or no)
task = await dream.check_task(task.id)
# To get information about readiness in bool format
task = await dream.check_task(task.id, False)
# To get information about readiness
Create gif
- photo_url_list Only the already generated image has. To check the image, use check_task(). Return io.BytesIO()
gif = await dream.gif(task.photo_url_list)
gif = await dream.gif(task.photo_url_list, thread=False)
# Used if you don't want to use an asynchronous thread.
# to generate a gif, it is true since the generation is quite long
# Generation in the thread is not available for the synchronous library
Generate
- 1 command to receive, reply immediately. without checks via check_task()
gif = await dream.generate(taxt:str, syle: int, gif: bool)
Creditless
- @mayneryt her give me algoritm
- @pokedim13 me
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wombo-0.1.62.tar.gz
(6.0 kB
view hashes)
Built Distribution
wombo-0.1.62-py3-none-any.whl
(8.7 kB
view hashes)