Skip to content

deepakpadhi986/py-assign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatGPT API Integration and Flask Web App Development

language code size

Python Development With ChatGPT Assignment

Objective

The purpose of this assignment is to evaluate my skills in Python, Flask, API integration, prompt engineering, and web development. You will develop a simple web application that integrates with the ChatGPT API and demonstrates your ability to work with the mentioned technologies.

Installation

To run this project, perform the following tasks

Download the code file manually or via git

git clone https://github.com/deepakpadhi986/py-assign.git

Create a virtual environment and activate it (recommended)

Open your command prompt and change your project directory to py-assign and run the following command

python -m venv venvapp
cd venvapp/Scripts
activate
cd../.. 

Go to py-assign folder & download required packages

cd py-assign
pip install -r requirements.txt

And your api key inside app.py

openai.api_key = "YOUR_API_KEY"

Run the app.py file using

python app.py

click on the url to view it on the browser

To run the test file Run the test.py file using

python test.py

Preview

Home

Screenshot

Result

Screenshot

Test

Screenshot

Made with 🤍 by Deepak Padhi