Skip to content

Commit 202cd31

Browse files
committed
Remove github token
1 parent 71482a9 commit 202cd31

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

LLM/generate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ def __init__(self, llm_token):
2626
Summaries : {summary_list}
2727
2828
Limit final summary to 2000 words. Provide an elegant answer highlighting its purpose,
29-
main features, and key technologies used. Include 2-3 emojis.
29+
main features, and key technologies used. Include 2-3 emojis. Response will be shown in HTML page
30+
inside a <p> tag so make it compatible with it.
3031
3132
"""
3233

LLM/scrap.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ def scrap_repo(github_owner, github_repo_name, github_access_token, llm_token):
2222
"""
2323

2424
# Setup Github and OpenAI
25-
auth = Auth.Token(github_access_token)
26-
g = Github(auth=auth)
25+
g = Github()
2726
get_summary = LLM_Summarize(llm_token)
2827

2928
logger.info("Github & OpenAI set")

analyze.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@ def __init__(self, token, url):
1616
parsed_url = url.split("/") # Split URL based on /
1717
self.github_owner = parsed_url[-2] # Get the owner
1818
self.github_repo_name = parsed_url[-1] # Get the repo name
19-
self.github_access_token = "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"
2019
logger.info("Necessary variables set")
2120

2221
def run(self):
2322
result = scrap_repo(
2423
self.github_owner,
2524
self.github_repo_name,
26-
self.github_access_token,
2725
self.llm_token,
2826
)
2927
logger.info("Final summary ready!")

0 commit comments

Comments
 (0)