Extract zip file in deployed app

I’ve deployed an streamlit app on streamlit sharing. The app us upload zip/rar file and is suppose to extract it. The zip file contains .msg .eml files without any attachments. These emails are trained on ml model for classification.
I could make this work on localhost but it is not working on the deployed app. The zip file itself is not extracting.

SOLVED : I’m using pyunpack for extracting zip/rar files. When pipreqs was used to create it didn’t include patools, which is one of the requirements for pyunpack. After adding patools in the requirements.txt the issue resolved.

1 Like