File size: 379 Bytes
de0cb94
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import streamlit as st
from pony.orm import Database

db = Database()
db.bind(
    provider='postgres',
    user=st.secrets['pg_user'],
    password=st.secrets['pg_password'],
    host=st.secrets['pg_host'],
    port=st.secrets['pg_port'],
    database=st.secrets['pg_database']
)
AUTH_ENDPOINT_TOKEN = st.secrets["auth_endpoint_token"]
ENDPOINT_URL = st.secrets["endpoint_url"]