Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Python Development With ChatGPT API (Assignment)
https://github.com/deepakpadhi986/py-assign

chatapp chatgpt chatgpt-api flask python tests

Last synced: 15 days ago
JSON representation

Python Development With ChatGPT API (Assignment)

Awesome Lists containing this project

README

        

# 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
```bash
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
```bash
python -m venv venvapp
cd venvapp/Scripts
activate
cd../..
```

Go to ```py-assign``` folder & download required packages
```bash
cd py-assign
pip install -r requirements.txt
```

And your api key inside ```app.py```
https://github.com/deepakpadhi986/py-assign/blob/1cb290b6c4977df87246bc8ff737284ec63a5463/app.py#L6

Run the ```app.py``` file using
```bash
python app.py
```

click on the url to view it on the browser

To run the test file
Run the ```test.py``` file using
```bash
python test.py
```

## Preview

**Home**

![Screenshot](https://raw.githubusercontent.com/deepakpadhi986/py-assign/main/asset/home.png)

**Result**

![Screenshot](https://raw.githubusercontent.com/deepakpadhi986/py-assign/main/asset/result.png)

**Test**

![Screenshot](https://raw.githubusercontent.com/deepakpadhi986/py-assign/main/asset/test.png)

### Made with 🤍 by Deepak Padhi