"No one is harder on a talented person than the person themselves" - Linda Wilkinson ; "Trust your guts and don't follow the herd" ; "Validate direction not destination" ;
Showing posts with label Streamlit. Show all posts
Showing posts with label Streamlit. Show all posts

December 11, 2023

Streamlit + Docker + App Engine + IAP = Production Grade App

GCP App Engine

  • Fully Managed Platform
  • Deployment, Scaling, yaml based
Streamlit
  • Opensource framework
  • User interface for interactive AI / ML web Applications
  • Easier for Data processing / Visualization
Docker

  • Containerize Apps
  • Build - Test - Dockerize - Test - Push - Deploy
Google Identity Aware Proxy
  • Authenticated users gain access
  • Control over App Deployed
  • Google Identity and access management services
Keep Learning!!!

November 22, 2023

Secure Google App Engine App - Streamlit App

1. Steps to build/ deploy sample App



2. Enable IAP for App Engine


Add users
To grant access to the application, 
click "Add Principal" 
select the IAP-secured Web App User role






Keep Exploring!!!

November 14, 2023

Implement OAuth with GCP

This learning is more around adding OAuth for streamlit App. This video and code shared was a good reference to customize.

Creating a custom GCP project, providing OAuth Consent, Adding user info, onboarding is the process.

Step 1 - Fill Consent Screen and Add Test Users







Step 2 - Create Credentials



Sample code




Keep Exploring!!!

July 18, 2023

Streamlit Deployment Notes examples

runtime: python
runtime_config:
operating_system: “ubuntu18”
runtime_version: “3.8”
entrypoint: streamlit run --server.port=8080 --server.address=0.0.0.0 --server.enableCORS=false --server.enableWebsocketCompression=false --server.enableXsrfProtection=false --server.headless=true app.py
env: flex
network:
session_affinity: true

Keep Exploring!!!


June 26, 2021

Convert avi to mp4 in ffmpeg for streamlit

Streamlit didn't work with avi. ffmpeg tool worked for converting from avi to mp4

What did not work 

ffmpeg -i video_Raw.avi -c:v copy -c:a copy -y video_Raw_New.mp4

What Worked 

ffmpeg -y -i video_Raw.avi -vcodec libx264 video_Raw_New.mp4

Keep Learning!!!


May 22, 2021

Streamlit vision demo

 




Happy Learning!!!!

May 21, 2021

Streamlit calculator demo

 



Keep Adding more relevant examples!!!