Hello!
I’m a recent beginner to Streamlit, but I created an NLP application and wanted a method of deployment. Therefore, I turned to Streamlit. However, whenever I try to deploy my app, I get this error: Server error [A10]: Unable to create app.
I am a complete beginner to app development, so my requirements.txt might not be completely accurate. However, I’m not sure what the problem is.
Does anyone know how to solve this? For context, here is my Github repo: GitHub - ashroice/minet
Hi @ashroy, welcome to the Streamlit community!!
We’re glad you’ve chosen Streamlit to develop and deploy your NLP application!
Streamlit apps are launched using the command: streamlit run app.py
, where app.py
is the Python script containing the code for your app. For example, your app could be called MINetApplication.py
.
Similarly, Streamlit sharing expects the code for your app to be in a .py
file. It is unable to find the file in your repo and thus returns an error. You can solve this by creating a .py
file with the code from your Jupyter notebook* and deploying that Python file.
*Note: Your notebook contains a couple of Jupyter specific commands (magics) such as !pip install stanza
and %time
that you should not copy over into your .py
file.
Happy Streamlit-ing!
Snehan
Hello Everyone!
Anyone that’s facing this issue above should have this file name “streamlit_app.py” in their repo.
Until I did that, I was able to deploy my file to Streamlit.
NB: This is my first time of deploying to Streamlit