App fails to run using a relative file path

Streamlit app tries to connect to hugging face when i try to provide a local file path to a saved pytorch model , however it works fine if i provide it complete system path

I want to deploy the app , so is there any other way to provide the local path to make the app work eg

Your app running in hugging face cannot access files in your computer.

Is there no way to run it without connecting to hugging face , how can you load your own model ?

Put the model in the same computer where your application runs.