0

I want to deploy streamlit app on azure web app which contains the model which is 1.30 GB.

I have configured the azure web app using the basic plan B1 and deployment strategy using local git and startup command as:

streamlit run app.py --server.port 8000 --server.address 0.0.0.0

I'm confused here. Should I direct push this big model to azure web app which I already did. Or is there any other way around?

Thank You in advance.

1 Answer 1

1

Your understanding is correct, There are some pre-requisites you need to meet in order to deploy Streamlit Web app in Azure app service.

  • Make sure you create a web app with Runtime set to Python 3.10 as the streamlit app will cause issue below Python 3.10 runtime in Azure Web app.

enter image description here

  • Make sure the SKU is set to B1 and above.

enter image description here

  • Make sure you set the HTTPS only to off, Even after setting this to off you can browse your Website with HTTPS

  • And add this command as a startup command in your Azure Web app
    Configuration:-

python -m streamlit run app.py --server.port 8000 --server.address 0.0.0.0

Refer my SO thread answer

I created one sample streamlit application like below:-

enter image description here

Deployed it in Azure Web app created above with Python 3.10 and B1 SKU successfully with Start-up command & HTTPS only off setting like below:-

enter image description here

enter image description here

enter image description here

Sign up to request clarification or add additional context in comments.

3 Comments

Hi Siddhesh, Thank You for the detailed answer. I really appreciate. I tried this way. It is giving error : Could not find virtual environment directory /home/site/wwwroot/antenv.
When I try to push code to web app from local git I also face the error: RPC failed; curl 6 Recv failure: Connection was reset send-pack: unexpected disconnect while reading sideband packet
THANK YOU, you helped me not to go insane. The answer is correct !

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.