HTTP post a streamlit script/file to a service and have it rendered back

I want to have a catalog of Streamlit python files (e.g. a catalog of visualizations a user can select from) stored either in a database or blob storage. Once the user selects a Streamlit file, I need it to be posted to a HTTP endpoint and have a Streamlit service render it back to the user’s browser, so they can view and “score/rank” the visualization. So, my question is how can I host a Streamlit service that can accept a posted Streamlit script and run/render it back to the user’s browser (most likely embedded in an iframe of the scoring application – which has been developed with Angular).