lvwerra HF staff commited on
Commit
b9f3732
β€’
1 Parent(s): 1795206

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -4,7 +4,8 @@ import streamlit as st
4
 
5
  @st.cache()
6
  def load_all_repository_names():
7
- list_of_repo_names = load_dataset("bigcode/the-stack-paths", split="train")["repository_name"]
 
8
  return list_of_repo_names
9
 
10
  st.title("Am I in The Stack?")
@@ -14,8 +15,12 @@ n_repos = len(repo_names)
14
 
15
  username = st.text_input("GitHub Username:")
16
 
 
 
 
17
  if st.button("Check!"):
18
 
 
19
  list_of_repos = []
20
  progress_bar = st.progress(0.0)
21
 
@@ -31,4 +36,6 @@ if st.button("Check!"):
31
  st.markdown("There is **1 repository** under that username in The Stack:")
32
  else:
33
  st.markdown(f"There are **{len(list_of_repos)} repositories** under that username in The Stack:")
34
- st.text("\n".join(list_of_repos))
 
 
 
4
 
5
  @st.cache()
6
  def load_all_repository_names():
7
+ list_of_repo_names = ["test"]
8
+ #list_of_repo_names = load_dataset("bigcode/the-stack-paths", split="train")["repository_name"]
9
  return list_of_repo_names
10
 
11
  st.title("Am I in The Stack?")
 
15
 
16
  username = st.text_input("GitHub Username:")
17
 
18
+ st.markdown("Note: this Space is currently under construction.")
19
+
20
+ """
21
  if st.button("Check!"):
22
 
23
+
24
  list_of_repos = []
25
  progress_bar = st.progress(0.0)
26
 
 
36
  st.markdown("There is **1 repository** under that username in The Stack:")
37
  else:
38
  st.markdown(f"There are **{len(list_of_repos)} repositories** under that username in The Stack:")
39
+ st.text("\n".join(list_of_repos))
40
+
41
+ """