lvwerra HF staff commited on
Commit
baef036
1 Parent(s): fa82d2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -9
app.py CHANGED
@@ -46,14 +46,15 @@ if st.button("Check!"):# or username:
46
  print("Time to check", time.time()-t_start)
47
 
48
  #if st.button("I want to remove my data!"):
49
- exclude_repo = []
50
- for repo in repos:
51
- exclude_repo.append(st.checkbox(repo))
52
-
53
- issue_text = "I want to remove the following repositories.\n\n"
54
- issue_text += "- "+ "\n - ".join([repo for (repo, exclude) in zip(repos, exclude_repo) if exclude])
55
- st.code(issue_text)
56
-
57
- st.markdown("Open an issue with the above text in the opt-out repo [here]https://github.com/bigcode-project/opt-out/issues/new)")
 
58
 
59
  print("Full time", time.time()-t_0)
 
46
  print("Time to check", time.time()-t_start)
47
 
48
  #if st.button("I want to remove my data!"):
49
+ with st.expander("I want to opt-out")
50
+ exclude_repo = []
51
+ for repo in repos:
52
+ exclude_repo.append(st.checkbox(repo), value=True)
53
+
54
+ issue_text = "I want to remove the following repositories.\n\n"
55
+ issue_text += "- "+ "\n - ".join([repo for (repo, exclude) in zip(repos, exclude_repo) if exclude])
56
+ st.code(issue_text)
57
+
58
+ st.markdown("Open an issue with the above text in the opt-out repo [here](https://github.com/bigcode-project/opt-out/issues/new)")
59
 
60
  print("Full time", time.time()-t_0)