Opening an image on google cloud

Hello,

I manage to deploy my first app. But the images doesnt appear on the page.
This is the error message : FileNotFoundError: [Errno 2] No such file or directory: ‘https://storage.googleapis.com/imajo/media/predict_resim.jpg

here is the code :

htp7='https://storage.googleapis.com/imajo/media/planner_resim.jpg'
#htp7='gs://imajo/media/planner_resim.jpg'
image7 = Image.open(htp7)
st.image(image7, caption= 'Inventory Planner', width=800)

this is my app : https://easy-inventory-planner.ew.r.appspot.com/ the error is on ‘about analysis page’

Hi @ozgurdugmeci,

st.image accepts a URL as input so

htp7='https://storage.googleapis.com/imajo/media/planner_resim.jpg'
st.image(htp7, caption= 'Inventory Planner', width=800)

should do

Fanilo

2 Likes

this is golden, thank you @andfanilo, that solved the problem

1 Like