Spaces:
Runtime error
Runtime error
Commit
·
5d9897c
1
Parent(s):
c7e734e
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import streamlit as st
|
2 |
from github import Github
|
3 |
from github import GithubException
|
@@ -5,9 +6,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
|
13 |
def get_repositories_with_file(filename):
|
|
|
1 |
+
import os
|
2 |
import streamlit as st
|
3 |
from github import Github
|
4 |
from github import GithubException
|
|
|
6 |
# Set up the Streamlit app
|
7 |
st.set_page_config(page_title="GitHub File Search", page_icon=":mag_right:")
|
8 |
|
9 |
+
# Retrieve the GitHub API token from the environment variable
|
10 |
+
access_token = os.environ["GITHUB"]
|
|
|
11 |
|
12 |
# Define a function to get all the repositories that contain a file with the given name
|
13 |
def get_repositories_with_file(filename):
|