TypeError: 'module' object is not callable in Streamlit webrtc

getting following erro
Traceback (most recent call last):
File “F:\Desktop\Projects\Waste Detection.venv\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py”, line 584, in _run_script
exec(code, module.dict)
File “F:\Desktop\Projects\Waste Detection\pages\2_Webcame.py”, line 62, in
main_loop()
File “F:\Desktop\Projects\Waste Detection\pages\2_Webcame.py”, line 60, in main_loop
webrtc(key=‘key’, video_processor_factory=predictor.predict)
TypeError: ‘module’ object is not callable


This is my code

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