Use a GenAI app to prototype (turn PDF notes into clinical insight)
Brainstorm end goal
Who is audience? (non-technical people)
What does the app look like?
Features (drag and drop, export to csv, etc.)
be specific (do not give open ended tasks to GenAI apps)
⚠️ NOTE
Give the AI a role act as a product manager
Google Colab
Streamlit
ngrok account and auth token
Sarvam AI API key
Optional
Python
Local files
Click on New app
Here is a deployed app
Push your code to github and deploy
Setup a repository in github
Or run in Google Colab
Run streamlit using
streamlit run script.py
import streamlit as st
import pandas as pd
import numpy as np
st.write("Streamlit supports a wide range of data visualizations")
all_users = ["Alice", "Bob", "Charly"]
with st.container(border=True):
users = st.multiselect("Users", all_users, default=all_users)
rolling_average = st.toggle("Rolling average")
np.random.seed(19)
data = pd.DataFrame(np.random.randn(20, len(users)), columns=users)
if rolling_average:
data = data.rolling(7).mean().dropna()
tab1, tab2 = st.tabs(["Chart", "Dataframe"])
tab1.line_chart(data, height=250)
tab2.dataframe(data, height=250, use_container_width=True)
To save your ngrok authtoken securely in Google Colab, you should use Colab’s Secrets feature. This allows you to store sensitive information like API keys or tokens without embedding them directly in your code, which is important for security and when sharing notebooks.
ngrok authtoken, you could name it YOUR_AUTHTOKEN (or any other descriptive name you prefer, but remember it for later).ngrok authtoken into the “Value” field.Once saved, you can access this secret in your Python code using from google.colab import userdata and then userdata.get('YOUR_AUTHTOKEN') (replacing 'YOUR_AUTHTOKEN' with the name you gave your secret).