I’ve finished designing my first local streamlit project and am now on a dilemma to make it work on server.
On my app i create a diagram image and offer the image to be downloaded by the user, something like:
### some logic ### # Plot Diagram myClass.CreateDiagram(srcPath=f"plot/diagram.png") image = Image.open('plot/diagram.png') st.subheader('Base Diagram') st.image(image) with open('plot/diagram.png', mode='rb') as file: btn = st.download_button(label='Download', data=file, file_name='diagram.png', mime='image/png')
I’m a bit confused on how to do the same with the app running on server, i mean create an .png file store it somewhere and retrieve it later.
I’ve tried some workarounds with GCS but with no success. If someone could share some knowledge i would be very grateful.
Also, great job with streamlit very simple and robust module to create web apps.