Giter VIP home page Giter VIP logo

contained's Introduction

Contained

Contained is a repository containing a Dockerized Django application with features for handling Client Requests to chat-gpt the gpt-3.5 model is used since text-davinci-003 is deprecated..

Prerequisites

Make sure you have Docker Desktop Running on your local machine

Getting Started

  1. Clone the repository to your local machine:

    git clone https://github.com/Usmaexe/Contained.git
    cd Contained
    git ChatGptApi update --init --recursive
  2. Build and run the Docker containers:

    docker-compose up -d --build
  3. Access the Django application:

    Open your web browser and go to http://localhost:8089/

Directory Structure

  • ChatGptApi/: Contains Django application source code, templates and the endpoint
  • venv/: Virtual environment for Python dependencies
  • docker-compose.yml: Docker Compose configuration file
  • Dockerfile: Dockerfile for building the Docker image
  • requirements.txt: Located in ChatGptApi it is a List of Python dependencies

Docker Compose Configuration

The docker-compose.yml file is configured to mount the ChatGptApi directory as the source code for the Django application and expose the necessary ports.

It also maps the Content.csv file from the host to the container.

Notes

  • The application will be accessible at http://localhost:8089/
  • The CSV file is stored in the ChatGptApi/data/ directory in the container.
  • This project is actively maintained and will be updated in the future to incorporate improvements and additional features.

In case of any error on the requirement file, Run this command pip freeze > requirements.txt

contained's People

Contributors

usmaexe 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.