Text2Prompt2Image is a Flask-based web application that leverages the Replicate API, integrating both mistralai/mixtral-8x7b-instruct-v0.1
and playgroundai/playground-v2-1024px-aesthetic
models. This app allows users to effortlessly convert text into professional image generation prompts, producing visually stunning outputs.
-
Clone Repository:
git clone <repository_url> cd Text2Prompt2Image
-
Install Dependencies:
pip install -r requirements.txt
-
Set Up Replicate API Token:
- Open
app.py
and replace"YOUR_REPLICATE_API_TOKEN"
with your actual Replicate API token from https://replicate.com/account/api-tokens
- Open
-
Run the App:
python app.py
-
Access the App: Open your web browser and go to http://127.0.0.1:5000/
- Home Page:
- Visit the home page to input your text.
- Result Page:
- Navigate to the result page to view the generated prompt and corresponding image.
-
Prompt Generation:
- Model:
mistralai/mixtral-8x7b-instruct-v0.1:7b3212fbaf88310cfef07a061ce94224e82efc8403c26fc67e8f6c065de51f21
- Model:
-
Image Generation:
- Model:
playgroundai/playground-v2-1024px-aesthetic:42fe626e41cc811eaf02c94b892774839268ce1994ea778eba97103fe1ef51b8
- Model:
- Ensure you have a valid Replicate API token for seamless functionality.
- This app is currently set to run in debug mode. Adjust configurations for production deployment.
Feel free to explore, contribute, and elevate your content effortlessly with Text2Prompt2Image! ๐ #Text2Prompt2Image