REST API that takes a text file as an input. The API then returns the summary and related MCQs ( multiple choice questions ) based on the content of the file. Take corpus and generates mcq questions
-
Create a virtual env -> python -m venv env
-
once the env is created activate it -> cd ./env/Scripts; ./activate; cd ../../
-
Once activated, install this package ( run the command ) -> pip install git+https://github.com/boudinfl/pke.git
-
Once the above package is installed the run -> pip install -r requirements.txt
-
Once all the requirements are installed then run -> python main.py
-
Then once the server starts -> double click on index.html and use it
-
After 2-3 uses, comments line 2 and 3 inside the file summarizer_model_base_functions.py
There's one layer of cache on top of API abstraction. Means the first time the API will be slow but when the same file is uploaded second time, the API response will be JIT. For demonstration try to have 3-4 text files saved locally and use them 2-3 times. The server will be ready to show
Also remember that it mostly works on python 3.10 and above