Building Serverless Web App using Streamlit and AWS Lambda

Hi everyone,

I want to create a simple serverless web app using Streamlit and AWS Lambda. I created a Lambda function which invokes the deployed machine learning model on AWS Sagemaker, and then I created a REST API using AWS Gateway API. However, I need help in how to call this REST API in my web app and how to run my Python code in a serverless way. Is this possible? If not, could you recommend me an alternative way to use my Sagemaker model using Streamlit?

Thanks,
Ozan