Not-Grim-Refer commited on
Commit
c7e734e
·
1 Parent(s): 9f22a18
Files changed (1) hide show
  1. app.py +2 -2
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
- # Replace YOUR_ACCESS_TOKEN with your GitHub personal access token
9
- access_token = "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"
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