{"id":414,"date":"2024-04-06T20:19:20","date_gmt":"2024-04-07T00:19:20","guid":{"rendered":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/?p=414"},"modified":"2024-04-07T02:04:48","modified_gmt":"2024-04-07T06:04:48","slug":"kellys-status-report-for-4-6-24","status":"publish","type":"post","link":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/2024\/04\/06\/kellys-status-report-for-4-6-24\/","title":{"rendered":"Kelly&#8217;s Status Report for 4\/6\/24"},"content":{"rendered":"<hr \/>\n<h3><strong>Work Accomplished:<\/strong><\/h3>\n<ul>\n<li>Integrated OpenAI API to get recipe using current inventory\n<ul>\n<li>Connected the results from the filter options (Dietary Restrictions &amp; Cuisine)<\/li>\n<li>Prompted the LLM and asked to end the recipe with !!! since there was a problem earlier where some long recipes are cut short and not finished.\n<ul>\n<li>Checking to make sure the response has !!! in it and requesting the response again in a loop if not, until it has it.<\/li>\n<\/ul>\n<\/li>\n<li>Generate Recipe button is disabled after it is clicked until it gives you a recipe to prevent multiple responses if the user clicks more times.<\/li>\n<\/ul>\n<\/li>\n<li>Created a pop up with the name of the recipe\n<ul>\n<li>Clicking &#8220;Back&#8221; goes back so you can generate a new recipe<\/li>\n<li>Clicking &#8220;Let&#8217;s get cooking!&#8221; goes to the recipe card page.<\/li>\n<\/ul>\n<\/li>\n<li>Created an upload image button widget that can be reused across screens\n<ul>\n<li>Users can upload a picture from their photo library, take a picture from their camera, or remove the picture.<\/li>\n<\/ul>\n<\/li>\n<li>Created the recipe card page\n<ul>\n<li>Able to upload image<\/li>\n<li>Parsed the data from the OpenAI result to bullet point the ingredients and number the instruction steps.<\/li>\n<li>Bookmark icon fills in when clicked, which will save the recipe to saved recipes (not implemented yet because the database is not connected)<\/li>\n<\/ul>\n<\/li>\n<li>Allowed the saved recipe list to be clickable to open the recipe card.\n<ul>\n<li>Adjusted the formatting for the item card as a recipe to be different from the inventory<\/li>\n<\/ul>\n<\/li>\n<li>Created custom inventory input pop up when clicking the + button on the inventory page\n<ul>\n<li>Title is the only required field and the save button is disabled if the title is empty<\/li>\n<li>Expiration date uses a date picker that opens a calendar<\/li>\n<li>Quantity can be typed in or use + and &#8211; buttons to adjust the quantity.<\/li>\n<li>Able to upload image<\/li>\n<li>Clicking out of the pop up exits it<\/li>\n<\/ul>\n<\/li>\n<li>Created a custom recipe input pop up when clicking the + button on the recipe saved tab page\n<ul>\n<li>Title, ingredients, and instructions are all required.<\/li>\n<li>Able to upload image<\/li>\n<li>Users will have to write out the ingredients and instructions using new lines\n<ul>\n<li>It will save as the same format as the OpenAI response so that it can appear on the recipe card.<\/li>\n<li>Writing in &#8211; or * or numbers at the start of the line will also work and it&#8217;ll be parsed out.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"padding-left: 30px\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-426\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/wp-content\/uploads\/sites\/307\/2024\/04\/Screenshot-2024-04-06-at-7.59.16\u202fPM-146x300.png\" alt=\"\" width=\"146\" height=\"300\" \/><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-427\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/wp-content\/uploads\/sites\/307\/2024\/04\/Screenshot-2024-04-06-at-8.00.46\u202fPM-146x300.png\" alt=\"\" width=\"146\" height=\"300\" \/><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-428\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/wp-content\/uploads\/sites\/307\/2024\/04\/Screenshot-2024-04-06-at-8.00.51\u202fPM-146x300.png\" alt=\"\" width=\"146\" height=\"300\" \/><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-429\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/wp-content\/uploads\/sites\/307\/2024\/04\/Screenshot-2024-04-06-at-8.00.54\u202fPM-146x300.png\" alt=\"\" width=\"146\" height=\"300\" \/><\/p>\n<p style=\"padding-left: 30px\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-416\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/wp-content\/uploads\/sites\/307\/2024\/04\/Screenshot-2024-04-06-at-7.56.46\u202fPM-146x300.png\" alt=\"\" width=\"146\" height=\"300\" \/> <img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-417\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/wp-content\/uploads\/sites\/307\/2024\/04\/Screenshot-2024-04-06-at-7.57.00\u202fPM-146x300.png\" alt=\"\" width=\"146\" height=\"300\" \/> <img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-418\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/wp-content\/uploads\/sites\/307\/2024\/04\/Screenshot-2024-04-06-at-7.57.04\u202fPM-146x300.png\" alt=\"\" width=\"146\" height=\"300\" \/><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-419\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/wp-content\/uploads\/sites\/307\/2024\/04\/Screenshot-2024-04-06-at-7.57.15\u202fPM-146x300.png\" alt=\"\" width=\"146\" height=\"300\" \/> <img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-420\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/wp-content\/uploads\/sites\/307\/2024\/04\/Screenshot-2024-04-06-at-7.57.18\u202fPM-146x300.png\" alt=\"\" width=\"146\" height=\"300\" \/> <img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-421\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/wp-content\/uploads\/sites\/307\/2024\/04\/Screenshot-2024-04-06-at-7.57.25\u202fPM-146x300.png\" alt=\"\" width=\"146\" height=\"300\" \/><\/p>\n<p style=\"padding-left: 30px\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-422\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/wp-content\/uploads\/sites\/307\/2024\/04\/Screenshot-2024-04-06-at-7.57.32\u202fPM-146x300.png\" alt=\"\" width=\"146\" height=\"300\" \/>\u00a0<img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-425\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/wp-content\/uploads\/sites\/307\/2024\/04\/Screenshot-2024-04-06-at-7.59.03\u202fPM-146x300.png\" alt=\"\" width=\"146\" height=\"300\" \/><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-423\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/wp-content\/uploads\/sites\/307\/2024\/04\/Screenshot-2024-04-06-at-7.57.36\u202fPM-146x300.png\" alt=\"\" width=\"146\" height=\"300\" \/> <img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-424\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/wp-content\/uploads\/sites\/307\/2024\/04\/Screenshot-2024-04-06-at-7.57.46\u202fPM-146x300.png\" alt=\"\" width=\"146\" height=\"300\" \/><\/p>\n<p style=\"text-align: center\"><a href=\"https:\/\/drive.google.com\/file\/d\/1xRJ065BLmrIkwW4LMmIpkWW5fS7v7R-X\/view?usp=sharing\">video demo of the new features<\/a><\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<h3><strong>Verification:<\/strong><\/h3>\n<ul>\n<li>I will run tests by timing the recipe generation (it is currently very fast so definitely meets the use case and design requirements)<\/li>\n<li>For the accuracy of the generated recipes, I will generate all different cuisines of recipes and then check the ingredients to make sure they are all in our inventory.\n<ul>\n<li>I will calculate the percentage of accurate recipes from a sample size and if it is lower that our use case\/ design requirements, I will edit the prompt\/ add more verification steps to ensure they are accurate.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr \/>\n<h3><strong>Progress:<\/strong><\/h3>\n<ul>\n<li>On track with the updated gantt chart. App is basically done on my end, it just needs to be connected to the DB for everything to work together (Sebastian&#8217;s role)<\/li>\n<li>Decided to make the &#8220;cookable&#8221; toggle and grayed out recipes a stretch goal since it is difficult to parse the ingredients from the string response that OpenAI provides\n<ul>\n<li>Sometimes it&#8217;s listed as &#8220;garlic, 2 cloves&#8221; or &#8220;2 cloves of garlic&#8221; so getting just &#8220;garlic&#8221; to check against our DB would be difficult.<\/li>\n<\/ul>\n<\/li>\n<li>Another stretch goal will be to edit things, like the text in the recipes and also the images of the inventory items.<\/li>\n<li>Made the filter button in the recipe tab a stretch goal. Will need to be saving the tags passed into the LLM and also set tags in custom recipes.<\/li>\n<li>The search, location filtering, and sorting will be done by Sebastian and might make more sense once the database is in the app, but it is not as big of a priority as other tasks.<\/li>\n<\/ul>\n<p style=\"padding-left: 60px\">\u00a0<img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-415 size-large\" src=\"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/wp-content\/uploads\/sites\/307\/2024\/04\/Screenshot-2024-04-06-at-7.41.01\u202fPM-1024x380.png\" alt=\"\" width=\"1024\" height=\"380\" srcset=\"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/wp-content\/uploads\/sites\/307\/2024\/04\/Screenshot-2024-04-06-at-7.41.01\u202fPM-1024x380.png 1024w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/wp-content\/uploads\/sites\/307\/2024\/04\/Screenshot-2024-04-06-at-7.41.01\u202fPM-300x111.png 300w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/wp-content\/uploads\/sites\/307\/2024\/04\/Screenshot-2024-04-06-at-7.41.01\u202fPM-768x285.png 768w, https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/wp-content\/uploads\/sites\/307\/2024\/04\/Screenshot-2024-04-06-at-7.41.01\u202fPM.png 1684w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<hr \/>\n<h3><strong>Things to complete next week:<\/strong><\/h3>\n<ul>\n<li>Connect scanner video feed to the app<\/li>\n<li>Verification tests<\/li>\n<\/ul>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Work Accomplished: Integrated OpenAI API to get recipe using current inventory Connected the results from the filter options (Dietary Restrictions &amp; Cuisine) Prompted the LLM and asked to end the recipe with !!! since there was a problem earlier where some long recipes are cut&nbsp;<a class=\"read-more\" href=\"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/2024\/04\/06\/kellys-status-report-for-4-6-24\/\">&hellip;<\/a><\/p>\n","protected":false},"author":846,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[5],"_links":{"self":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/wp-json\/wp\/v2\/posts\/414"}],"collection":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/wp-json\/wp\/v2\/users\/846"}],"replies":[{"embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/wp-json\/wp\/v2\/comments?post=414"}],"version-history":[{"count":5,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/wp-json\/wp\/v2\/posts\/414\/revisions"}],"predecessor-version":[{"id":449,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/wp-json\/wp\/v2\/posts\/414\/revisions\/449"}],"wp:attachment":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/wp-json\/wp\/v2\/media?parent=414"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/wp-json\/wp\/v2\/categories?post=414"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s24-teame5\/wp-json\/wp\/v2\/tags?post=414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}