St.camera_input detects camera locally but not on deployed app

I have a deployed web app where in 1 page (submit monitoring sheets), it requires camera input. When I test it out locally, it works fine but when I check the deployed app it does not recognize any webcam input (either on laptop, PC, or mobile device).

Any help would be appreciated since this is my first time encountering this issue.

Code snippet for camera input is seen below:

cam = st.camera_input(label='Kunan ng letrato ang papel',disabled=False)
file = st.file_uploader('O mag upload ng larawan ng papel', type=["png", "jpg", "jpeg"])
image_main = None
if cam is not None:
    image_main = cam
elif file is not None:
    image_main = file

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.