Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/UIC-LIT/PATHWiSE
Browse files Browse the repository at this point in the history
  • Loading branch information
cheetodustflori committed Feb 14, 2025
2 parents 4ab4ab6 + dccdbdb commit 66299e3
Show file tree
Hide file tree
Showing 67 changed files with 4,453 additions and 2,650 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
web/build
nlp/best_model.pt
nlp/google_creds.js
nlp/pathnlp
pathnlp
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
1. Install an Apache and MySQL server. XAMPP is a good option that comes as a bundle and compatible with all major OS: https://www.apachefriends.org/download.html
2. (Optional) Create a virtual host and put all the files from this repository at the root of this new virtual host. Example URL: pathwi.se or path.wise
3. Create a Database named "pathwise_prototype" with a username of 'root' and password ''. Copy of these details can be found at validate/index.php line no 32-35
4. Install the Open AI based Emotion and Comment Type classification system from here: https://github.com/UIC-LIT/misty-emot/ Update the origins value in the src/server/main.py file with the virtual host URL from Step 2. You may use "*" as value too for the staging/dev environemnt
4. (Skip this step if you don't want to test AI powred comments) Install the Open AI based Emotion and Comment Type classification system from here: https://github.com/UIC-LIT/misty-emot/ Update the origins value in the src/server/main.py file with the virtual host URL from Step 2. You may use "*" as value too for the staging/dev environemnt
5. Update the SERVER_URL variable at the begining of the following files: assets/main.js and assets/main-working.js of this repositry. The value should match the server URL you get from Step 4.
6. Update the misty_IP variable in assets/robot-play.js file with the appropriate robot IP
6. Update the misty_IP variable in assets/robot-play.js file with the appropriate robot IP. (This step makes the robot speak on the go, need to configure the speech parameters to make it more human sounding)
7. That makes the system running with all dependencies. You may now open the teachers side of the editor from pathwi.se/index-working.htm or the other virtual host option from Step 2 if you choose so. Make annotations as you seem fit and save them. The student facing one fetches the latest data from your latest save. Please use the 'Cold nose article' for this simulation for now. Thanks
Binary file added assets/PDF/meet-the-microbes.pdf
Binary file not shown.
Binary file added assets/PDF/menacing-meningitis.pdf
Binary file not shown.
225 changes: 101 additions & 124 deletions assets/articles.js
Original file line number Diff line number Diff line change
@@ -1,80 +1,19 @@
if (localStorage.getItem("auth") == null) {
localStorage.setItem("auth", "true");
}
var articleList = [];
var groups = [{
'name': 'Group 1',
'id': 'group-1',
'password': 'test1',
'articles': [{
'title': 'Cold Nose Article',
'filename': 'cold_nose_article'
},
{
'title': 'Exoplanet Article',
'filename': 'exoplanet_article'
},
{
'title': 'Osmosis Article',
'filename': 'osmosis_article'
}
]
var articleLibrary = [{
'title': 'Menacing Meningitis',
'filename': 'menacing-meningitis',
'from': new Date('2025-02-12T10:00:00'),
'to': new Date('2025-02-18T13:30:00')
},
{
'title': 'Meet the Microbes',
'filename': 'meet-the-microbes',
'from': new Date('2025-02-18T13:31:00'),
'to': new Date('2025-02-28T13:30:00')
},
{
'name': 'Group 2',
'id': 'group-2',
'password': 'test2',
'articles': [{
'title': 'Frogs Evaluation Article',
'filename': 'frogs_evolution_article'
},
{
'title': 'Soils & Nutrient Cycle',
'filename': 'table_readings_1'
},
{
'title': 'Earthworms Article',
'filename': 'table_readings_2'
}
]
}, {
'name': 'Group 3',
'id': 'group-3',
'password': 'test3',
'articles': [{
'title': 'Consume vs Consumed',
'filename': 'table_readings_3'
},
{
'title': 'An Alive Bug?',
'filename': 'table_readings_4'
},
{
'title': 'Nitrogen Cycle',
'filename': 'table_readings_5'
}
]
}, {
'name': 'Group 4',
'id': 'group-4',
'password': 'test4',
'articles': [{
'title': 'Carbon Cycle',
'filename': 'table_readings_6'
},
{
'title': 'Recycling the Dead',
'filename': 'table_readings_7'
},
{
'title': 'Gut Bacteria',
'filename': 'table_readings_8'
}
]
}
];

var articles = [{
'title': 'Doctor with an eye for eyes',
'filename': 'doctor-with-an-eye-for-eyes'
},
Expand Down Expand Up @@ -113,59 +52,98 @@ var articles = [{
{
'title': 'The Camping Trip',
'filename': 'the-camping-trip'
},
{
'title': 'Cold Nose Article',
'filename': 'cold_nose_article'
},
{
'title': 'Exoplanet Article',
'filename': 'exoplanet_article'
},
{
'title': 'Osmosis Article',
'filename': 'osmosis_article'
},
{
'title': 'Frogs Evaluation Article',
'filename': 'frogs_evolution_article'
},
{
'title': 'Soils & Nutrient Cycle',
'filename': 'table_readings_1'
},
{
'title': 'Earthworms Article',
'filename': 'table_readings_2'
},
{
'title': 'Consume vs Consumed',
'filename': 'table_readings_3'
},
{
'title': 'An Alive Bug?',
'filename': 'table_readings_4'
},
{
'title': 'Nitrogen Cycle',
'filename': 'table_readings_5'
},
{
'title': 'Carbon Cycle',
'filename': 'table_readings_6'
},
{
'title': 'Recycling the Dead',
'filename': 'table_readings_7'
},
{
'title': 'Gut Bacteria',
'filename': 'table_readings_8'
}
];

// var articles = [{
// 'title': 'Cold Nose Article',
// 'filename': 'cold_nose_article'
// },
// {
// 'title': 'Exoplanet Article',
// 'filename': 'exoplanet_article'
// },
// {
// 'title': 'Osmosis Article',
// 'filename': 'osmosis_article'
// },
// {
// 'title': 'Frogs Evaluation Article',
// 'filename': 'frogs_evolution_article'
// },
// {
// 'title': 'Soils & Nutrient Cycle',
// 'filename': 'table_readings_1'
// },
// {
// 'title': 'Earthworms Article',
// 'filename': 'table_readings_2'
// },
// {
// 'title': 'Consume vs Consumed',
// 'filename': 'table_readings_3'
// },
// {
// 'title': 'An Alive Bug?',
// 'filename': 'table_readings_4'
// },
// {
// 'title': 'Nitrogen Cycle',
// 'filename': 'table_readings_5'
// },
// {
// 'title': 'Carbon Cycle',
// 'filename': 'table_readings_6'
// },
// {
// 'title': 'Recycling the Dead',
// 'filename': 'table_readings_7'
// },
// {
// 'title': 'Gut Bacteria',
// 'filename': 'table_readings_8'
// }
// ];

var articleList = [];
var groups = [{
'name': 'Group 1',
'id': 'group-1',
'password': 'test1',
'articles': [articleLibrary[10], articleLibrary[11], articleLibrary[12]]
},
{
'name': 'Group 2',
'id': 'group-2',
'password': 'test2',
'articles': [articleLibrary[0], articleLibrary[1]]
}
];
var articles = [
articleLibrary[0],
articleLibrary[1],
articleLibrary[2],
articleLibrary[3],
articleLibrary[4],
articleLibrary[5],
articleLibrary[6],
articleLibrary[7],
articleLibrary[8],
articleLibrary[9],
articleLibrary[10],
articleLibrary[11]
];
var articlesPrev = [
articleLibrary[12],
articleLibrary[13],
articleLibrary[14],
articleLibrary[15],
articleLibrary[16],
articleLibrary[17],
articleLibrary[18],
articleLibrary[19],
articleLibrary[20],
articleLibrary[21],
articleLibrary[22],
articleLibrary[23]
];
if (localStorage.getItem("auth") == "guest") {
articleList = articles;
} else {
Expand All @@ -175,7 +153,6 @@ if (localStorage.getItem("auth") == "guest") {
}
});
}

if (localStorage.getItem("currentArticle") === null) {
localStorage.setItem("currentArticle", articleList[0].filename);
localStorage.setItem("currentArticleTitle", articleList[0].title);
Expand Down
Binary file added assets/images/nlp/Listening.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/nlp/speaking.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/nlp/transitioning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 66299e3

Please sign in to comment.