StefanoBergia commited on
Commit
14409e7
·
1 Parent(s): 0fce7e8

aadded token

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -9,12 +9,7 @@ import os
9
  import logging
10
 
11
 
12
- #DEFAULT_TOKEN = os.getenv('NILM_API_TOKEN', '')
13
- DEFAULT_TOKEN = 'p2s8X9qL4zF7vN3mK6tR1bY5cA0wE3hJ'
14
- print(DEFAULT_TOKEN)
15
- logger = logging.getLogger("Data cellar demo")
16
 
17
- logger.info(f"token : {DEFAULT_TOKEN}")
18
 
19
  # Configure the main page
20
  st.set_page_config(
@@ -24,6 +19,13 @@ st.set_page_config(
24
  initial_sidebar_state="expanded"
25
  )
26
 
 
 
 
 
 
 
 
27
  # Initialize session state variables
28
  if 'api_token' not in st.session_state:
29
  st.session_state.api_token = DEFAULT_TOKEN
 
9
  import logging
10
 
11
 
 
 
 
 
12
 
 
13
 
14
  # Configure the main page
15
  st.set_page_config(
 
19
  initial_sidebar_state="expanded"
20
  )
21
 
22
+ #DEFAULT_TOKEN = os.getenv('NILM_API_TOKEN', '')
23
+ DEFAULT_TOKEN = 'p2s8X9qL4zF7vN3mK6tR1bY5cA0wE3hJ'
24
+ print(DEFAULT_TOKEN)
25
+ logger = logging.getLogger("Data cellar demo")
26
+
27
+ logger.info(f"token : {DEFAULT_TOKEN}")
28
+
29
  # Initialize session state variables
30
  if 'api_token' not in st.session_state:
31
  st.session_state.api_token = DEFAULT_TOKEN