Skip to content

This is a remote, playful, conceptual project that will be worked on remotely on Github codespaces.

Notifications You must be signed in to change notification settings

ruizTechServices/playingWithGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

Playing With GPT

Python JavaScript Flask License

Overview

Playing With GPT is a playful yet secure project that interacts with OpenAI's GPT-4 API. The project is built using Python, JavaScript, HTML, and CSS, providing a simple and cohesive interface for generating text based on user input.

Project Structure

playingWithGPT/
├── backend/
│ ├── app.py
│ ├── requirements.txt
│ └── utils.py
├── frontend/
│ ├── index.html
│ ├── styles
│ └── styles.css
│ ├── scripts
│ └── script.js
├── .gitignore
└── README.md

Features

  • Backend: Powered by Flask, it handles API requests and communicates with the GPT-4 API.
  • Frontend: A simple HTML/CSS/JS interface for users to input prompts and display generated text.
  • Security: Adheres to security standards, including the use of environment variables for sensitive information.

Getting Started

Prerequisites

  • Python 3.8+
  • Node.js (for potential future enhancements)
  • OpenAI API Key

Installation

  1. Clone the repository

    git clone https://github.com/ruizTechServices/playingWithGPT.git
    cd playingWithGPT
  2. Set up the backend

    cd backend
    python -m venv venv
    source venv/bin/activate  # On Windows, use `venv\Scripts\activate`
    pip install -r requirements.txt
  3. Create a .env file in the backend directory

    echo "OPENAI_API_KEY=your-openai-api-key" > .env
  4. Run the Flask application

    python app.py
  5. Open the frontend

    • Open index.html in your browser.

Usage

  1. Navigate to the frontend directory:

    cd frontend
  2. Open index.html in your browser.

  3. Enter a prompt in the textarea and click "Generate" to receive a response from GPT-4.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Luis Giovanni Ruiz - @your_twitter_handle - [email protected]

Project Link: [https://github.com/ruizTechServices/playingWithGPT.git]

Acknowledgments

About

This is a remote, playful, conceptual project that will be worked on remotely on Github codespaces.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published