Skip to content

juliajsbit/ai-chat-and-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Chat and Image App

The AI Chat and Image App is a React-based application that allows users to interact with an AI using OpenAI's GPT-3 for chat responses and DALL-E for image generation based on text prompts.

Prerequisites

Ensure you have the following installed:

  • Node.js/npm (npm at least version 18.16.0).

Installation

Create .env file and set up REACT_APP_OPENAI_API_KEY= To set up the AI Chat and Image App, follow these steps:

  1. Clone the repository:

    git clone https://github.com/yourusername/ai-chat-and-image-app.git
    cd ai-chat-and-image-app
    
  2. Install the required npm packages:

    npm install
    

Usage

To run the AI Chat and Image App, perform the following:

  1. Set the REACT_APP_OPENAI_API_KEY environment variable with your OpenAI API key:

    Unix-like systems:

    export REACT_APP_OPENAI_API_KEY={your_key}
    

    Windows Command Prompt:

    set REACT_APP_OPENAI_API_KEY={your_key}
    

    Windows PowerShell:

    $env:REACT_APP_OPENAI_API_KEY="{your_key}"
    
  2. Start the application:

    npm run start
    

This command will launch the app in your web browser at http://localhost:3000.

Contact

If you wish to contact me, email at [email protected].

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published