Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sukhbinder/winzy-text-to-image
Generate text to image using pollinations.ai api
https://github.com/sukhbinder/winzy-text-to-image
Last synced: 2 months ago
JSON representation
Generate text to image using pollinations.ai api
- Host: GitHub
- URL: https://github.com/sukhbinder/winzy-text-to-image
- Owner: sukhbinder
- License: apache-2.0
- Created: 2024-10-14T15:25:20.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-13T13:03:04.000Z (2 months ago)
- Last Synced: 2024-11-13T13:18:31.283Z (2 months ago)
- Language: Python
- Size: 272 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# winzy-text-to-image
[![PyPI](https://img.shields.io/pypi/v/winzy-text-to-image.svg)](https://pypi.org/project/winzy-text-to-image/)
[![Changelog](https://img.shields.io/github/v/release/sukhbinder/winzy-text-to-image?include_prereleases&label=changelog)](https://github.com/sukhbinder/winzy-text-to-image/releases)
[![Tests](https://github.com/sukhbinder/winzy-text-to-image/workflows/Test/badge.svg)](https://github.com/sukhbinder/winzy-text-to-image/actions?query=workflow%3ATest)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/sukhbinder/winzy-text-to-image/blob/main/LICENSE)Generate text to image using pollinations.ai api
## Installation
First configure your Winzy project [to use Winzy](https://github.com/sukhbinder/winzy).
Then install this plugin in the same environment as your Winzy application.
```bash
pip install winzy-text-to-image
```
## UsageTo create an image, use it like this.
```bash
winzy txt2img -p a punjabi family of four overloking a valley
```
This produces this image.![Punjabi Family](punjabi-family.jpg)
## Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
```bash
cd winzy-text-to-image
python -m venv venv
source venv/bin/activate
```
Now install the dependencies and test dependencies:
```bash
pip install -e '.[test]'
```
To run the tests:
```bash
python -m pytest
```