How to duplicate streamlit space

I have tried to duplicate a space but it now shows " Build error : Error while cloning Space repository". How do I fix this? I tried looking through the spaces documentation, but it shows only how to duplicate gradio based spaces and not the streamlit based ones.

Sorry if you had issues. Just FYI, there’s a new repo for repo duplication - Repo_duplicator - a Hugging Face Space by osanseviero