Error when using Streamlit Cloud [Detectron2]

Hello,
When I deploy my code I get the following error:

There is a turnaround solution where first I comment out the detection2 git line in the requirements. Then, the app at Streamlit Cloud will start to load the packages, then I remove the comment from the detectron2 git line. This way it works.

But, is there a direct solution??

This is my requirements file:
image

github: GitHub - Nabil-Miri/mystreamlit

It was solved by adding this line:

You an find the needed import line in here: Installation — detectron2 0.6 documentation

Select the line based on your torch version or CPU if you are not using CUDA