Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -45,4 +45,16 @@ if st.button("Check!"):# or username:
|
|
45 |
st.text("**No**, your code is not in The Stack.")
|
46 |
print("Time to check", time.time()-t_start)
|
47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
print("Full time", time.time()-t_0)
|
|
|
45 |
st.text("**No**, your code is not in The Stack.")
|
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(f"`{repo}`"))
|
52 |
+
|
53 |
+
|
54 |
+
issue_text = "I want to remove the following repositories.\n\n"
|
55 |
+
issue_text += "- "+ "\n - ".join(repo if exclude for repo, exclude in zip(repos, exlcude_repo))
|
56 |
+
st.code(issue_text)
|
57 |
+
|
58 |
+
st.text("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)
|