This commit is contained in:
Kshitij Kotasthane 2020-10-15 13:05:19 +05:30
commit 37e1587dce
2 changed files with 7 additions and 3 deletions

View File

@ -22,6 +22,12 @@ This is a smart Quiz Generator that generates a dynamic quiz from any uploaded t
## WorkFlow ## WorkFlow
![workflow](https://user-images.githubusercontent.com/42115530/95686207-1111e300-0c1a-11eb-993a-766967b91c92.png) ![workflow](https://user-images.githubusercontent.com/42115530/95686207-1111e300-0c1a-11eb-993a-766967b91c92.png)
## Demo Video
<a href="https://youtu.be/74RrpcO89E0" target="_blank" rel="noopener">
<img src="https://user-images.githubusercontent.com/42115530/95742312-6c40e580-0cad-11eb-89a5-c2ee099bf8d7.png" alt="MLH-Quizzet"
title="MLH-Quizzet" width="400px" />
</a>
## Technology Stack: ## Technology Stack:

4
app.py
View File

@ -12,9 +12,6 @@ UPLOAD_FOLDER = './pdf/'
app = Flask(__name__) app = Flask(__name__)
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
# Global quiz object
questions = dict()
@ app.route('/') @ app.route('/')
def index(): def index():
@ -27,6 +24,7 @@ def quiz():
""" Handle upload and conversion of file + other stuff """ """ Handle upload and conversion of file + other stuff """
UPLOAD_STATUS = False UPLOAD_STATUS = False
questions = dict()
# Make directory to store uploaded files, if not exists # Make directory to store uploaded files, if not exists
if not os.path.isdir('./pdf'): if not os.path.isdir('./pdf'):