Make a page for uploading data to Nutrify
Currently Nutrify is split into two apps:
- The Streamlit app (for food image collecting) - https://share.streamlit.io/mrdbourke/nutrify/main/food_image_collector.py
- The Nutrify.app homepage - https://nutrify.app
Long-term, this isn't sustainable.
So I'd like to merge them into a single app.
For example, you could go to https://nutrify.app/upload to upload an image of food/label it - perhaps the "/upload" could just link to the Streamlit app in the meantime?
The https://nutrify.app/upload would be a similar page to the main page, nice and simple.
For example, you could go to https://nutrify.app/upload to upload an image of food/label it - perhaps the "/upload" could just link to the Streamlit app in the meantime?
This will work in the meantime.
Happy to make a react app for this with react-router. I see you are doing vanilla JS though.
A simple solution to this, for developing purpose is to create a multi-page streamlit app. This is a fairly new feature, hope this helps. Link to the feature blog post