Unknown Error while trying to deploy a Streamlit App through Streamlit Share

I’m working on deploying my first Dashboard for work. I was finally able to work out how to format the requirement.txt file but now that I’ve deployed it, I keep getting an error that doesn’t occur on my local system. The error is “AttributeError: ‘dict_keys’ object has no attribute ‘index’”. I’m a relative novice when it comes to coding so I’m not sure why this error keeps occuring. Does anybody have an idea of how to fix it?