lvwerra HF staff commited on
Commit
abfea56
β€’
1 Parent(s): 2e3080b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -8,7 +8,7 @@ def get_repo_names():
8
  return list_of_repo_names
9
 
10
  st.title("Am I in The Stack?")
11
-
12
  repo_names = get_repo_names()
13
 
14
  username = st.text_input("GitHub Username:")
@@ -17,10 +17,10 @@ if st.button("Check!"):
17
  list_of_repos = [repo_name for repo_name in repo_names if repo_name.split("/")[0]==username]
18
 
19
  if len(list_of_repos)==0:
20
- st.markdown("**No repository found in The Stack**")
21
  else:
22
  if len(list_of_repos)==1:
23
- st.markdown("**1 repository found in The Stack**")
24
  else:
25
- st.markdown(f"**{len(list_of_repos)} repositories found in The Stack**")
26
  st.text("\n".join(list_of_repos))
 
8
  return list_of_repo_names
9
 
10
  st.title("Am I in The Stack?")
11
+ st.markdown("This tool lets you check if a repository under a given username is part of [The Stack dataset](https://huggingface.co/datasets/bigcode/the-stack).")
12
  repo_names = get_repo_names()
13
 
14
  username = st.text_input("GitHub Username:")
 
17
  list_of_repos = [repo_name for repo_name in repo_names if repo_name.split("/")[0]==username]
18
 
19
  if len(list_of_repos)==0:
20
+ st.markdown("**There is no repository under that username in The Stack**")
21
  else:
22
  if len(list_of_repos)==1:
23
+ st.markdown("**There is 1 repository under that username in The Stack:**")
24
  else:
25
+ st.markdown(f"**There are {len(list_of_repos)} repositories under that username in The Stack:")
26
  st.text("\n".join(list_of_repos))