Skip to content

thesoftcoders/openai-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Openai-Django application

This Django application is designed to showcase the power of OpenAI's GPT-3 natural language processing model. It allows users to input a prompt and receive a generated response from GPT-3 based on that prompt.

Prerequisites

Python 3.x installed on your machine

Django installed on your machine

An OpenAI API key (can be obtained from the OpenAI website)

virtual environment Installation

Create virtual environment

  py -m venv env_open
  # for ubuntu/mac
  source env_open/bin/activate

  # for windows
  env_open\Scripts\activate

Run Locally

Clone the project

  git clone  https://github.com/thesoftcoders/openai-python.git

Go to the project directory

  cd api_response

Install dependencies

  pip install -r requirements.txt

Start the server

  python manage.py makemigrations
  python manage.py migrate
  python manage.py runserver

Environment Variables

To run this project, you will need to add the following environment variables to your openai_response/key file

API_KEY

Screenshots

View api key

click on "View API keys"

App Screenshot

click on "create new secret key"

Generated key

copy and paste at the place of "API_KEY".

Documentation

Openai documentation

Python documentation

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published