Hello All,
I am new to streamlit and trying to deploy my first app on it. Its an object detection model and connects with Roboflow in the run-time to fetch the inference. The project runs fine locally.
However, While deploying on streamlit, it runs in an infinite loop and no error messages are also displayed. All the requirements are successfully installed.
Has anyone faced this problem before or can anyone suggest the steps on what can be done to debug the root cause for this?
Details:
- link to the public app (https://marine-object-detection.streamlit.app/).
- link to app’s public GitHub repository (GitHub - kanikawarman/Marine-object-detection).
- Streamlit and Python versions. ---->
opencv-python==4.10.0.84
opencv-python-headless==4.10.0.84
requests==2.32.3
roboflow==1.1.33
streamlit==1.41.1
ultralytics==8.0.196
ultralytics-thop==2.0.0
torch==2.5.0
torchvision==0.20.0
Few lines from the log:
Using Python 3.12.8 environment at /home/adminuser/venv
Audited 1 package in 6ms
────────────────────────────────────────────────────────────────────────────────────
[10:13:45] Python dependencies were installed from /mount/src/marine-object-detection/requirements.txt using uv.
Check if streamlit is installed
Streamlit is already installed
[10:13:46] Processed dependencies!
[10:13:49] Pulling code changes from Github…
[10:13:50] Processing dependencies…
[10:13:50] Apt dependencies were installed from /mount/src/marine-object-detection/packages.txt using apt-get.
[10:13:50] Processed dependencies!
[10:13:52] Updated app!
[10:13:52] Pulling code changes from Github…
[10:13:52] Processing dependencies…
[10:13:52] Apt dependencies were installed from /mount/src/marine-object-detection/packages.txt using apt-get.
[10:13:52] Processed dependencies!
[10:13:54] Updated app!
2025-02-02 10:18:55.425 503 GET /script-health-check (127.0.0.1) 60040.84ms
2025-02-02 10:19:55.804 503 GET /script-health-check (127.0.0.1) 60053.78ms
2025-02-02 10:20:56.153 503 GET /script-health-check (127.0.0.1) 60056.94ms