# Load model from different folder in app.py in hugging face space

**URL:** <https://discuss.huggingface.co/t/load-model-from-different-folder-in-app-py-in-hugging-face-space/67661>\
**Category:** Spaces\
**Created:** [January 2, 2024, 4:34am UTC](https://discuss.huggingface.co/t/load-model-from-different-folder-in-app-py-in-hugging-face-space/67661 "2024-01-02T04:34:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Varosa](https://avatars.discourse-cdn.com/v4/letter/v/9f8e36/32.png) [@Varosa](https://discuss.huggingface.co/u/Varosa)\
**Post date:** [January 2, 2024, 4:34am UTC](https://discuss.huggingface.co/t/load-model-from-different-folder-in-app-py-in-hugging-face-space/67661/1 "2024-01-02T04:34:11Z")

</div>

I am trying to load the models I saved in different folder in a hugging face space and I am trying to access those models in my app.py file in space but I got the following issue :

 ![Screenshot 2024-01-02 at 10.17.05](https://us1.discourse-cdn.com/hellohellohello/original/3X/b/5/b5b3f85c6abe959673569f472ea394c75568edaf.png)

Can anyone help me with it ?  
My folder SeamlessExpressive is out of the app.py file.

---

<div class="post-metadata">

**Author:** ![nielsr](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nielsr/32/39617_2.png) [@nielsr](https://discuss.huggingface.co/u/nielsr)\
**Post date:** [January 2, 2024, 2:04pm UTC](https://discuss.huggingface.co/t/load-model-from-different-folder-in-app-py-in-hugging-face-space/67661/2 "2024-01-02T14:04:26Z")

</div>

Hi,

Some ways to resolve this, is by 1) printing out the files that you get from `os.listdir(folder_path)` 2) adding a slash to the folder name
