Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iafisher/quizgpt
https://github.com/iafisher/quizgpt
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/iafisher/quizgpt
- Owner: iafisher
- License: mit
- Created: 2024-01-15T03:18:33.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-01-30T13:55:28.000Z (9 months ago)
- Last Synced: 2024-01-31T02:40:50.321Z (9 months ago)
- Language: Python
- Size: 60.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
QuizGPT uses OpenAI's GPT models to create and grade quizzes on topics of your choice.
## CLI
```shell
# Set-up
$ cd cli
$ pip install -r requirements.txt
$ export OPENAI_API_KEY=..
$ alias quizgpt='python main.py'# Import a quiz
$ quizgpt import samples/postwar-us-history.json
$ quizgpt list
1 Post-war United States history (5 questions)# Take a quiz
$ quizgpt take# Create your own subject
$ quizgpt create
# Add questions
$ quizgpt add
```## Web interface
*The web interface is under development and not yet completely functional.*To run the backend server:
```shell
$ cd backend
$ source .venv/bin/activate
$ export OPENAI_API_KEY=...
$ uvicorn main:app --reload --port 5757
```To serve the frontend:
```shell
$ cd frontend
$ npm run dev
```To install the project:
```shell
$ cd backend
$ python -m venv .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt
$ cd ../frontend
$ npm install
```The project is developed with Python 3.11 and Node 20.8. Older versions may not work.