Spaces:
Runtime error
Runtime error
Commit
·
c7e734e
1
Parent(s):
9f22a18
secret
Browse files
app.py
CHANGED
@@ -5,8 +5,8 @@ from github import GithubException
|
|
5 |
# Set up the Streamlit app
|
6 |
st.set_page_config(page_title="GitHub File Search", page_icon=":mag_right:")
|
7 |
|
8 |
-
#
|
9 |
-
|
10 |
|
11 |
|
12 |
# Define a function to get all the repositories that contain a file with the given name
|
|
|
5 |
# Set up the Streamlit app
|
6 |
st.set_page_config(page_title="GitHub File Search", page_icon=":mag_right:")
|
7 |
|
8 |
+
# Get the GitHub API token from the hugging face space secrets
|
9 |
+
github_api_token = st.secrets["GitHub"]
|
10 |
|
11 |
|
12 |
# Define a function to get all the repositories that contain a file with the given name
|