Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello Nqinn,
I've wrapped your code to work with Streamlit.
What needs to change
st.number_input
andst.text
Deploying to Streamlit
Go to https://share.streamlit.io/
Create new App
Select the Application & Deploy
Redeploying
Streamlit cloud automatically detects any change on the github repo, so you need need to push changes to update it.
However, it's best to develop small changes locally, see below.
Developing locally
Note that streamlit cloud has the default packages installed to make the app work.
Thus you need to install those too
This will install all dependencies to run streamlit locally.
Then, run your app via
Which will host the server locally
Now, you can develop your Streamlit app without having to deploy on streamlit.
Note to re-run automatically if you want with the top right button