Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
|
|
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)
|