Can I run my public app from a private repo

at first thank the community for such an amazing platform

I have created an python project using google generative ai llm and the repo is publick , as I put my key here i want to make it private . I see it works well . I update the code and rebot the app It could not run anymore

Instead of doing that use

st.sercets()

in your code. And you can add your secrets in the advanced page of your app in the cloud dashboard. Make sure to give the right format. Here is the sample

#Cloud advanced dashboard page
llm_key=‘xxxxxx’

#In app code

import streamlit as st
key=st.secrets['llm_key']

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.