https://github.com/allan7yin/gpt-mircoservice
Quiz Generation Application - GPT Microservice
https://github.com/allan7yin/gpt-mircoservice
flask openai-api rabbitmq
Last synced: 2 months ago
JSON representation
Quiz Generation Application - GPT Microservice
- Host: GitHub
- URL: https://github.com/allan7yin/gpt-mircoservice
- Owner: allan7yin
- Created: 2023-05-06T16:50:03.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-12T01:31:36.000Z (about 3 years ago)
- Last Synced: 2025-04-05T09:40:56.834Z (over 1 year ago)
- Topics: flask, openai-api, rabbitmq
- Language: Python
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# QuizGPT
## What is this
Fun application that generates quizes via OpenAI `text-davinci-003` model. Application built using Flask framework connected to local SQLite Database.
This repo has been updated to work with `Python v3.9` and up.
## Prerequisites
Sign up for [OpenAI](https://openai.com) and get your secret key. This is rotated periodically so needs to be updated. It is recommended to use a Python Virtual Environment.
## How To Run
1. Install Python >= 3.8. Below is for MacOS:
```
$ brew install Python@3.9
```
2. Enter Python Vritual Environment (Example shown below, e.g open a terminal in the project root directory and run):
```
$ virtualenv env
```
3. Then enter the virtual environment:
```
$ source env/bin/activate
```
4. Then install the dependencies:
```
$ (env) pip install -r requirements.txt
```
5. Finally start the web server:
```
$ (env) flask run
```
This server will start on port 5000 by default. You can change this in `app.py` by changing the following line to this:
```python
if __name__ == "__main__":
app.run(debug=True, port=)
```
## Next Steps
- Allow for multiple Quizes to exist at one time, able to visit "my quizes"
- Polish UI
- Allow for downloading into local file from site
- Implement a RabbitMQ features