Skip to content

A quick and dirty flask app to create text prompts from images using various huggingface BLIP models

License

Notifications You must be signed in to change notification settings

miahnelson/BLIP_Image_to_Text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask Image to Text App

Description

This Flask application allows users to paste images and analyze them using pre-trained models to extract text.

File Structure

flask_app/
│
├── app.py
├── requirements.txt
├── README.md
├── templates/
│   └── upload.html
├── static/
   ├── css/
   │   └── styles.css
   └── js/
       └── scripts.js

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/flask_image_to_text.git
    cd flask_image_to_text
  2. Create a virtual environment and activate it:

    python -m venv venv
    source venv/bin/activate
  3. Install the required dependencies:

    pip install -r requirements.txt

Running the Application

  1. Ensure the virtual environment is activated.

  2. Run the Flask application:

    flask run
  3. Open your web browser and navigate to http://127.0.0.1:5000/.

Usage

  1. Paste an image into the designated box.

  2. Select the models you want to use for analysis.

  3. Click "Analyze Image" to process the image and extract text.

  4. View and copy the results as needed.

Example Generated Prompt image

Output of Prompt using InvokeAI image

License

This project is licensed under the MIT License.

About

A quick and dirty flask app to create text prompts from images using various huggingface BLIP models

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published