Please install the Educational Web as mentioned below from the CS410 Repository and then overwrite the two python scripts (app.py and model.py) from our project repository. The git push from the original repo was showing an error when we were trying to bring in the entire code. We have tested the code using Python 3.6.
Please let us know if you need a demo or require any assistance installing the code in your local machine for testing.
EducationalWeb Installation Steps
The following instructions have been tested with Python2.7 on Linux and MacOS
-
Download EducationalWeb code from https://github.com/CS410Fall2020/EducationalWeb
-
You should have ElasticSearch installed and running -- https://www.elastic.co/guide/en/elasticsearch/reference/current/targz.html
-
Create the index in ElasticSearch by running
python create_es_index.pyfromEducationalWeb/ -
Download tfidf_outputs.zip from here -- https://drive.google.com/file/d/19ia7CqaHnW3KKxASbnfs2clqRIgdTFiw/view?usp=sharing
Unzip the file and place the folder under EducationalWeb/static
-
Download cs410.zip from here -- https://drive.google.com/file/d/1Xiw9oSavOOeJsy_SIiIxPf4aqsuyuuh6/view?usp=sharing
Unzip the file and place the folder under
EducationalWeb/pdf.js/static/slides/ -
From
EducationalWeb/pdf.js/build/generic/web, run the following command:gulp server -
Please install the libraries mentioned in app.py before you run the code.
-
In another terminal window, run
python app.pyfromEducationalWeb/ -
The site should be available at http://localhost:8096/