Token-classification / settings.py
Arthour
Fixed settings and secrets
0a00eda
raw
history blame
379 Bytes
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"]