Inspiration
We thought the UMass Dining app wasn't intuitive enough and the website/app was too messy to navigate.
How we built it
We started with small exploration scripts working with the data to learn how to web scrape and use the various Python libraries we would need. We then moved onto implementing a baseline frontend with our scraped menus for the four main dining commons. Afterwards, we implemented a script that used Sentence Transformers and cosine similarity to produce recommendations/similar foods to the user's favorites. Then, we built the backend structure and connected it to the frontend. Finally, we polished the frontend and improved the UI.
Challenges we ran into
We initially weren't familiar with Flask, the backend web framework we decided to use. This was an integral part of getting the web app working, so it was a process to learn the basics of GET and POST requests. In addition, we had trouble with creating the similar food suggestion workflow, and had to learn about Sentence Transformers and cosine similarity.
Accomplishments that we're proud of
We're proud of how well we organized our data, as well as how much we were able to learn about web scraping, web app development, utilizing a transformers model, and the various Python libraries. Additionally, we were very happy with how we laid out the UI, as it accomplished exactly what were looking to do, making the site appealing and intuitive to users.
What we learned
We learned a lot about Python web app development, including implementing a frontend and backend. We also learned how to produce similar items to user preferences using Sentence Transformers and cosine similarity.
What's next for UCravings
Turn it into a deployed app, incorporating the other various dining locations on and around campus, making it widely available to students. Moving further than simple web scraping and looking more into specific ingredients of foods.
Built With
- beautiful-soup
- css
- flask
- html
- javascript
- python
- sentence-transformers