Code Monkey home page Code Monkey logo

text2prompt2image's Introduction

Text2Prompt2Image

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.

Setup

  1. Clone Repository:

    git clone <repository_url>
    cd Text2Prompt2Image
  2. Install Dependencies:

    pip install -r requirements.txt
  3. Set Up Replicate API Token:

  4. Run the App:

    python app.py
  5. Access the App: Open your web browser and go to http://127.0.0.1:5000/

Usage

  1. Home Page:
    • Visit the home page to input your text.

image

  1. Result Page:
    • Navigate to the result page to view the generated prompt and corresponding image.

image

Models Used

  • Prompt Generation:

    • Model: mistralai/mixtral-8x7b-instruct-v0.1:7b3212fbaf88310cfef07a061ce94224e82efc8403c26fc67e8f6c065de51f21
  • Image Generation:

    • Model: playgroundai/playground-v2-1024px-aesthetic:42fe626e41cc811eaf02c94b892774839268ce1994ea778eba97103fe1ef51b8

Important Notes

  • 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

text2prompt2image's People

Contributors

mshojaei77 avatar

Stargazers

Hossein Molaei avatar Muhammadreza Haghiri avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.