Code Monkey home page Code Monkey logo

image-to-story-app's Introduction

README

Image-to-Story Generator

In this simple web app, both Google Vision API and OpenAI's GPT-3.5 Turbo model are utilized. The initial step involves analyzing the content of uploaded images using Google Vision API to extract labels, which subsequently serve as prompts for story generation using the GPT-3.5 Turbo model.

Video Demo

demo.mp4

Instructions

Setting Up API Keys

  1. Obtain a Google Vision API Key:

    • Visit the Google Cloud Console.
    • Create a new project or select an existing one.
    • Enable the "Cloud Vision API" for your project.
    • Create API credentials and copy the API key.
    • Add the API key to the .env file under GOOGLE_VISION_API_KEY.
  2. Obtain an OpenAI API Key:

    • Visit the OpenAI API to get access to the GPT-3.5 Turbo model.
    • Copy the API key.
    • Add the API key to the .env file under OPENAI_API_KEY.

Running the Application

  1. Start the Server:

    node server.js
  2. Start the React App: Open a new terminal and run:

    npm start
  3. Access the App:

    • Open your browser and navigate to http://localhost:3000.
    • You should see the Image-to-Story Generator UI.
  4. Upload an Image:

    • Click the "upload image to generate story" button.
    • Select an image from your local machine.
  5. View the Generated Story:

    • Once the image is uploaded, the app will display the uploaded image.
    • A typewriter effect will reveal the generated story based on the image content.

Notes

  • The application uses Node.js for the server and React for the front end.
  • The server runs on http://localhost:3001, and the React app runs on http://localhost:3000.

image-to-story-app's People

Contributors

murataltanbas avatar

Stargazers

 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.