Since my example does not work, there seems something wrong in your environment. For example, network problems.
Are you using firewall software or being inside a office network which may drop WebRTC packets?
Apart from that, your app hosted on Sharing does not work in my env, where my app works on the other hand. It implies there may also be something wrong in your app code, but I can't find an exact reason.
However I found one thing; your app executes mask_image() in every execution, even when the WebCam mode is selected. What if it is modified not to be run when not necessary?
It is also not starting to capture the video in your example program.
I'm also attaching the photo of your deployed example model not working.
Image: dev-to-uploads.s3.amazonaws.com/up...
Your link: share.streamlit.io/whitphx/streaml...
Since my example does not work, there seems something wrong in your environment. For example, network problems.
Are you using firewall software or being inside a office network which may drop WebRTC packets?
Apart from that, your app hosted on Sharing does not work in my env, where my app works on the other hand. It implies there may also be something wrong in your app code, but I can't find an exact reason.
However I found one thing; your app executes
mask_image()
in every execution, even when the WebCam mode is selected. What if it is modified not to be run when not necessary?I'm not using any firewall, And my app code is executing successfully on the local server, But It is not working on the Sharing Streamlit.
Does your app works on Sharing ? Because it in not working on any of my env.
Yes. That's why I think there are something wrong in your environment.
Can you share the logs displayed in the browser's developer tool? Are there some errors?
Sharing the log file please check.
Log File: dev-to-uploads.s3.amazonaws.com/up...
I'm asking you to please look into my code.
Github Code: github.com/zeeshaan28/Face-Mask-De...
I'm also sharing with you the log file of your example deployed on Sharing
File: dev-to-uploads.s3.amazonaws.com/up...