lvwerra HF staff commited on
Commit
a431d31
β€’
1 Parent(s): 811b83d

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -0
app.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from datasets import load_dataset
2
+ import streamlit as st
3
+
4
+
5
+
6
+ @st.cache()
7
+ def get_repo_names():
8
+ list_of_repo_names = ["lvwerra/test", "lvwerra/test2", "numpy/numpy"]
9
+ return list_of_repo_names
10
+
11
+ st.title("Am I in The Stack?")
12
+
13
+ repo_names = get_repo_names()
14
+
15
+ username = st.text_input("GitHub Username:")
16
+
17
+ if st.button("Check!"):
18
+ list_of_repos = [repo_name for repo_name in repo_names if repo_name.split("/")[0]==username]
19
+ st.text("## Repositories in The Stack:")
20
+
21
+ st.text("\n".join(list_of_repos))