i have a streamlit app that also uses flask. Can i deploy this on streamlit cloud or does the flask application needs to be hosted somewhere else
Hey @Megheg694,
Streamlit Community Cloud only supports deploying Streamlit apps, so unfortunately the Flask app will need to be hosted elsewhere (such as PythonAnywhere).
If you want to use Flask with your app, I’d suggest deploying it on Heroku or Railway and then use the deployed routes in your deployed streamlit app. Streamlit works great with the requests library and handles API requests very well. Just make sure to change your api routes from localhost to the deployed routes when about to push to the community cloud!
Hopefully this approach helped!
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.