A project that combines a Flask backend with an ML service to generate images from text.
Project description
Text to Image Generator
The project aims to create images from text using a pre-trained deep learning model.
This project contains two main components:
- A FastAPI backend serving HTML, CSS, and JavaScript.
- A machine learning service using the
stabilityai/sdxl-turbomodel to generate images from text.
Project Structure
Fastapi Backend
The Flask backend serves the frontend application, which includes HTML, CSS, and JavaScript files. It provides the user interface where users can input their question and document, and view the generated answer.
Deep Learning Service
The deep learning service utilizes the stabilityai/sdxl-turbo model. This service accepts a question and a document as input, processes them using the model, and returns an answer based on the content of the document.
Backend
The FastApi backend will be accessible at http://localhost:8000. It serves the front end application where users can input their text and receive the image..
Features
FastApi Backend:
Serves the frontend and handles user interactions.
ML Service:
Uses a state-of-the-art language model to provide answers based on the provided documents.
Docker Support:
Both components can be easily deployed using Docker and Docker Compose. CORS Handling: Ensures smooth interaction between the backend and the ML service
Running the project
Using Docker Compose
To build and run the project with Docker Compose, use the following command:
docker-compose up --build
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file text_to_image_generator-0.0.1.tar.gz.
File metadata
- Download URL: text_to_image_generator-0.0.1.tar.gz
- Upload date:
- Size: 1.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdf9361f8c90eb2388e7056c4364e5bb4a5e2512c0123d2df84376f2274789b5
|
|
| MD5 |
432771431c66bcd688e3ad7d21bb83bc
|
|
| BLAKE2b-256 |
3854964392fe9d2735cce99731ea7351cb67f5afd42e346630f871b82f23bb28
|
File details
Details for the file Text_to_Image_Generator-0.0.1-py3-none-any.whl.
File metadata
- Download URL: Text_to_Image_Generator-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2ac033b4b1fb506f56378314b26b1241f55dea26be112de5031129cbdfc0259
|
|
| MD5 |
9222240dc4b6c7d115650c938903baa2
|
|
| BLAKE2b-256 |
f8547cae8db1419ba2d82a562c0cbe9699a53c7f5c755f164c10c7ec5c4a467b
|