Activity

shn

Shipped this project!

I built an app that plans your lunches for the week based on what is available at school on that day! The most challenging part was dealing with the Nutrislice API, because it was unofficial and didn’t have any docs at all. I am most proud of how I fine tuned the prompt and model to make the AI response perfect

shn

So I just worked on the Readme mainly today, but I also made an adjustment to the history part. Before, I was storing it on a json file, which is hella jank and also doesn’t save between sessions. This time, I used Streamlit’s session state property, which is basically just storing info as cookies(I think) so that it saves between different tabs and stuff. I also made a logo for my project! It’s just a mash up of all the different stuff I used in my project. That’s the attachment cuz the demo is pretty much the same as last time :pf:

Attachment
0
shn

So I lowkey forgot to write this devlog even though it’s been seven hours of work just because I really wanted to get this one feature done. What I did in this time was firstly figuring out how to get candlestick data from the yahoo finance crate and making that data into a chart. Also this is the first time I’m using rust, so I learned a lot about it! I don’t really know why I started with that but uh I did! So I’m using ratatui for the terminal interface, it’s pretty nice to use, and it’s pretty ez to make charts. Right now I’m stuck with figuring out why there are random spots in the graph that don’t show up, but we’ll fix that later for sure! The attachment is the state of my project rn! Drop a follow if you like it :D

0
shn

So this is most likely gonna be the final devlog before shipping? During this one I added:

  • History
  • AI responses
  • Secret handling via streamlit itself
    First up: history. This one was pretty ez to implement, basically it was just putting prompts and responses into a json file and then retrieving it and putting it back in the prompt when we need it
    Second: AI responses. This one was kind of harder because this required some actual logic and app flow. I made it so that after you enter your info with the dropdown, the ai responds and then there’s a text box you can enter stuff in.
    Third: Secret handling via streamlit. Pretty self explanatory
    One thing I want to do after is maybe make it so that it uses Streamlit’s own session state property to store history and past messages. Would be cool. Attachment is my demo(again) See y’all on the other side!

P.S Speed I need these votes my project is kinda homeless

1

Comments

developergirishgiri

nice plz give me vote also and follow me

shn

So this is prob gonna be the biggest devlog, spent most of my time working on getting the nutrislice api to work. It’s really unofficial and has no docs, so had to dig through some really old reddit threads to get it to work. Rn it only works for my school, maybe will make it work for whatever school you select in the future but no promises. The json response it gives is giant and is in the format of a week, so it took some time to figure out what was worthwhile info and how to get it. After that it was smooth sailing, using hack club ai was pretty ez cuz of the docs. Using streamlit is cool cuz I can do everything in python with like no work(I hate web dev with my whole heart) So yea that’s the end of my yap the attachment is me using it :D

0