Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Create app.py
Browse files
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))
|