How to Deploy Streamlit App in China? (A Step-by-Step Guide)
How to Deploy Streamlit App in China? (A Step-by-Step Guide)

TLDR; This Streamlit China tutorial provides you with a step-by-step solution to deploy and host your Streamlit application in China.


What is Streamlit?

Streamlit is the first development framework that was specifically designed for the application for machine learning and data science teams. It is the fastest way to develop custom machine learning tools. You can think that its goal is to replace Flask in machine learning projects. Streamlit can help machine learning engineers quickly develop user interaction tools.

21YunBox provides a very simple Streamlit deployment method for China. You can quickly and easily deploy with 21YunBox in the Python environment.

Make your web app performs 10x faster in China.

Get started now, and our staff will assist your journey in China.

Get Started Now


How to Deploy Streamlit in China?

  1. Signup on 21YunBox
  2. Fork Streamlit
  3. Create a Cloud Service on the 21YunBox and allow the 21YunBox to access your code base
  4. Configure the following settings

Environment

PYTHON 3.7

Build command

pip3 install -r requirements.txt

Start command

sh setup.sh && streamlit run app.py

Note the configuration in setup.sh in the example, Streamlit startup parameters. If you have special needs, you can refer to the parameters provided in Streamlit official documentation to configure .

5. Click “Create Now”

If the description of the above text is not clear, you can refer this step-by-step video tutorial.

How to deploy Streamlit to the server in China?



Ready to make your app work in China?

Get Started Questions? Talk to an expert.