lvwerra HF staff commited on
Commit
c4eee53
β€’
1 Parent(s): 3310806

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -19,17 +19,17 @@ st.markdown("**_The Stack is an open governance interface between the AI and ope
19
  st.title("Am I in The Stack?")
20
  st.markdown("As part of the BigCode project, we released and maintain [The Stack](https://huggingface.co/datasets/bigcode/the-stack), a 3.1 TB dataset of permissively licensed source code in 30 programming languages. One of our goals in this project is to give the people who wrote this source code a choice as to whether or not it can be employed to develop and evaluate LLMs, as we acknowledge that not all developers may wish to have their data used for that purpose.")
21
 
22
- st.markdown("This tool lets you check if a repository under a given username is part of The Stack dataset.")
23
 
24
  usernames = load_all_usernames()
25
  username = st.text_input("Your GitHub Username:")
26
 
27
  if st.button("Check!"):
28
  if username in usernames:
29
- st.markdown("**Yes**, your data is in The Stack:")
30
- for repo_name in usernames[username]:
 
 
31
  st.markdown(f"`{repo_name}`")
32
-
33
- st.markdown("Would you like to have your data removed from future versions of The Stack? You can opt-out following the instructions [here](https://www.bigcode-project.org/docs/about/the-stack/#how-can-i-request-that-my-data-be-removed-from-the-stack).")
34
  else:
35
- st.markdown("**No**, your data is not in The Stack.")
 
19
  st.title("Am I in The Stack?")
20
  st.markdown("As part of the BigCode project, we released and maintain [The Stack](https://huggingface.co/datasets/bigcode/the-stack), a 3.1 TB dataset of permissively licensed source code in 30 programming languages. One of our goals in this project is to give the people who wrote this source code a choice as to whether or not it can be employed to develop and evaluate LLMs, as we acknowledge that not all developers may wish to have their data used for that purpose.")
21
 
22
+ st.markdown("This tool lets you check if a repository under a given username is part of The Stack dataset. Would you like to have your data removed from future versions of The Stack? You can opt-out following the instructions [here](https://www.bigcode-project.org/docs/about/the-stack/#how-can-i-request-that-my-data-be-removed-from-the-stack).")
23
 
24
  usernames = load_all_usernames()
25
  username = st.text_input("Your GitHub Username:")
26
 
27
  if st.button("Check!"):
28
  if username in usernames:
29
+ repos = usernames[username]
30
+ repo_word = "repository" if len(repos)==1 else "repositories"
31
+ st.markdown(f"**Yes**, there is code from **{len(repos)} {repo_word}** in The Stack:")
32
+ for repo_name in repos:
33
  st.markdown(f"`{repo_name}`")
 
 
34
  else:
35
+ st.markdown("**No**, your code is not in The Stack.")