GithubHelp home page GithubHelp logo

heatgub / quiz-generator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 101 KB

Quiz Generator - fill a form and solve a quiz with requested parameters (django + AJAX + GPTchat API)

Home Page: https://quizgenerator.pythonanywhere.com/

Python 54.68% CSS 14.60% JavaScript 10.66% HTML 20.06%
gptchat quiz-generator

quiz-generator's Introduction

Quiz generator (Django + AJAX + GPTchat API)

Overview

  • Backend - django, AJAX and GPTchat API to generate quizes

  • relational DB

  • asynchronous loading and saving of the highscore value

  • extended admin page with nested lists

  • Frontend - HTML, CSS, vanilla JS

You can find it hosted at https://quizgenerator.pythonanywhere.com/. Git version does not contain personal keys needed to run the website locally.

Warning

  • My API key has already expired, therefore quiz generating is not currently available. You will see "GPT response error" after generation attempt.

  • You can still choose a quiz to play from the highscores list: https://quizgenerator.pythonanywhere.com/highscores

Generate

Generate a quiz based on form input values (topic, time limit, GPT temperature, amounts of questions and answers)

Generated quiz looks like this:

It's GPT 3.5 (text-davinci-003) so it bases on the training set which is already outdated (up to Jun 2021). If it won't know much about the topic it will make it up, thus I do not guarantee that the quizzes are in line with reality.

Beat the highscore

If you earn enough points, you can overwrite current highscore with your nickname (asynchronously - AJAX)

You can check the table of generated quizes, ordered by the score (highscores) to compare your results. Hover over the table header's name to see detailed description.

Admin page

Here you can see a list of all the generated quizes (or - potentially - generation requests which went wrong with the whole response text).

Screenshot from 2023-06-13 18-07-37

When you enter a single quiz from that list, you get more details.

You can see a nested list implemented here for better control and overview of questions and answers from the admin page. Screenshot from 2023-06-13 19-02-20

That's all folks. Go and solve a quiz now ;)

quiz-generator's People

Contributors

heatgub avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.