Facing issues in deploying my flask application on streamlit

:rotating_light: Before clicking β€œCreate Topic”, please make sure your post includes the following information (otherwise, the post will be locked). :rotating_light:

  1. Share the link to the public deployed app.
  2. Share the link to your app’s public GitHub repository (including a requirements file).
  3. Share the full text of the error message (not a screenshot).
  4. Share the Streamlit and Python versions.

1.url for steamlit app
https://imageobjectremover-a5hu43pklbrgrxhimlu3of.streamlit.app/
2. URL for github repo

3.error -

[     UTC     ] Logs for imageobjectremover-glreytqqqtaa4bqpykmzx9.streamlit.app/

────────────────────────────────────────────────────────────────────────────────────────

[14:13:15] πŸš€ Starting up repository: 'image_object_remover', branch: 'main', main module: 'main.py'

[14:13:15] πŸ™ Cloning repository...

[14:13:18] πŸ™ Cloning into '/mount/src/image_object_remover'...
Warning: Permanently added the ED25519 host key for IP address '192.30.255.112' to the list of known hosts.

[14:13:18] πŸ™ Cloned repository!

[14:13:18] πŸ™ Pulling code changes from Github...

[14:13:19] πŸ“¦ Processing dependencies...


──────────────────────────────────────── pip ───────────────────────────────────────────


Collecting flask

  Downloading flask-3.0.0-py3-none-any.whl (99 kB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 99.7/99.7 KB 7.5 MB/s eta 0:00:00[2023-12-06 14:13:20.219070] 

Collecting cvlib

  Downloading cvlib-0.2.7.tar.gz (13.1 MB)

     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.1/13.1 MB 114.9 MB/s eta 0:00:00

  Preparing metadata (setup.py): started

  Preparing metadata (setup.py): finished with status 'done'

ERROR: Could not find a version that satisfies the requirement libgl1 (from versions: none)

ERROR: No matching distribution found for libgl1

WARNING: You are using pip version 22.0.3; however, version 23.3.1 is available.

You should consider upgrading via the '/home/adminuser/venv/bin/python -m pip install --upgrade pip' command.

Checking if Streamlit is installed


────────────────────────────────────────────────────────────────────────────────────────


[14:13:22] ❗️ installer returned a non-zero exit code

[14:13:22] ❗️ Error during processing dependencies! Please fix the error and push an update, or try restarting the app.

[14:14:55] ❗️ Streamlit server consistently failed status checks

[14:14:55] ❗️ Please fix the errors, push an update to the git repo, or reboot the app.

Besides some other issues, AFAIK you cannot run Flask besides Streamlit on the Streamlit Cloud infrastructure.

actually that problem is solved but same thing is happening with open cv now lol

Let me guess:
Either use opencv-python-headless or else see here:

thanks sir

this ain’t workin properly