Pankaj Munde commited on
Commit
8c677e9
1 Parent(s): 88e182d

config update.

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,5 +1,6 @@
1
  import os
2
  import base64
 
3
  import streamlit as st
4
  from streamlit_option_menu import option_menu
5
  from streamlit_authenticator import Authenticate
@@ -27,7 +28,8 @@ colors = [[236, 112, 99], [165, 105, 189], [ 225, 9, 232], [ 255, 38, 8 ], [ 247
27
  # with open('./static/config.yaml') as file:
28
  # config = yaml.load(file, Loader=SafeLoader)
29
 
30
- config = {"credentials": st.secrets["CREDENTIALS"], "cookie": st.secrets["COOKIE"]}
 
31
 
32
  authenticator = Authenticate(
33
  config['credentials'],
 
1
  import os
2
  import base64
3
+ import json
4
  import streamlit as st
5
  from streamlit_option_menu import option_menu
6
  from streamlit_authenticator import Authenticate
 
28
  # with open('./static/config.yaml') as file:
29
  # config = yaml.load(file, Loader=SafeLoader)
30
 
31
+
32
+ config = json.loads(st.secrets["CONFIG"])
33
 
34
  authenticator = Authenticate(
35
  config['credentials'],