Unable to import python function in multifile usecase

Hey there, thanks for sharing all the details and welcome to the community! :balloon: The error you’re seeing, IndentationError, means there’s a problem with the indentation (spacing/tabs) in your Python code—specifically in streamlit_app.py at or before line 14. This is a Python syntax issue, not specific to Streamlit, and will prevent your app from running until it’s fixed.

To resolve this, open streamlit_app.py in your repo, check for inconsistent indentation (mixing tabs and spaces, or misaligned blocks), and correct it. After fixing, commit and push your changes to GitHub—Streamlit Community Cloud will redeploy your app automatically. For more on debugging and best practices, see the Streamlit forum guide.

Sources: