Nelly-43 commited on
Commit
0ac62bf
·
verified ·
1 Parent(s): 83b10c6

Update app_web.py

Browse files
Files changed (1) hide show
  1. app_web.py +4 -0
app_web.py CHANGED
@@ -41,6 +41,10 @@ snapshot_download(repo_id="CGIAR/weai-kb",
41
  def cg_admin():
42
  user_data = st_javascript(js_code)
43
  orgs = []
 
 
 
 
44
  st.write(user_data)
45
  # if user_data:
46
  # username = user_data.get("user", "anonymous")
 
41
  def cg_admin():
42
  user_data = st_javascript(js_code)
43
  orgs = []
44
+ if user_data == 0:
45
+ st.info("🔄 Querying Hugging Face context... Please wait.")
46
+ time.sleep(0.5)
47
+ st.rerun()
48
  st.write(user_data)
49
  # if user_data:
50
  # username = user_data.get("user", "anonymous")