Spaces:
Sleeping

Fernando Knüttel commited on
Commit
979b9d2
·
1 Parent(s): 6294913

little notice if the response needs time

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +3 -2
src/streamlit_app.py CHANGED
@@ -130,8 +130,8 @@ if check_password():
130
  """
131
 
132
  st.markdown(splash_html, unsafe_allow_html=True)
133
- #if not requests.get(API_URL + "/model_status").json()['status'] == "ready":
134
- #requests.post(API_URL + "/load_model")
135
 
136
 
137
 
@@ -223,6 +223,7 @@ if check_password():
223
  <li>❌ <i>“Tell name”</i> → Too vague</li>
224
  </ul>
225
  <p>Ready? Click the button below to start your first question.</p>
 
226
  </div>
227
  </div>
228
  """,
 
130
  """
131
 
132
  st.markdown(splash_html, unsafe_allow_html=True)
133
+ if not requests.get(API_URL + "/model_status").json()['status'] == "ready":
134
+ requests.post(API_URL + "/load_model")
135
 
136
 
137
 
 
223
  <li>❌ <i>“Tell name”</i> → Too vague</li>
224
  </ul>
225
  <p>Ready? Click the button below to start your first question.</p>
226
+ <p>PS: If my reply takes a moment, don’t worry — I’m just getting ready for you.</p>
227
  </div>
228
  </div>
229
  """,