Fernando Knüttel commited on
Commit
167ef4d
·
1 Parent(s): 101cff0

adapting a better suited number for the loading splash waiting

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +2 -2
src/streamlit_app.py CHANGED
@@ -20,7 +20,7 @@ def get_base64_of_bin_file(path):
20
 
21
  # Little Password check
22
  def check_password():
23
- HF_PASSWORD = 'Hallo'
24
  def password_entered():
25
  if st.session_state["password"] == HF_PASSWORD:
26
  st.session_state["password_correct"] = True
@@ -136,7 +136,7 @@ if check_password():
136
 
137
  st.markdown(splash_html, unsafe_allow_html=True)
138
 
139
- min_loader_time = 5
140
  start = time.time()
141
 
142
  if not requests.get(API_URL + "/model_status").json()['status'] == "ready":
 
20
 
21
  # Little Password check
22
  def check_password():
23
+ HF_PASSWORD = os.environ['password']
24
  def password_entered():
25
  if st.session_state["password"] == HF_PASSWORD:
26
  st.session_state["password_correct"] = True
 
136
 
137
  st.markdown(splash_html, unsafe_allow_html=True)
138
 
139
+ min_loader_time = 5.9
140
  start = time.time()
141
 
142
  if not requests.get(API_URL + "/model_status").json()['status'] == "ready":