Spaces:
Sleeping
Sleeping
Update appaaa.py
Browse files
appaaa.py
CHANGED
@@ -139,7 +139,7 @@ def find_related_issues(issue_text: str, issues: list) -> list:
|
|
139 |
|
140 |
|
141 |
### Function to handle chat responsesasync
|
142 |
-
|
143 |
command: str,
|
144 |
history: List[Tuple[str, str]],
|
145 |
system_message: str,
|
@@ -154,8 +154,6 @@ def find_related_issues(issue_text: str, issues: list) -> list:
|
|
154 |
programming_language: str,
|
155 |
*args
|
156 |
) -> str:
|
157 |
-
# Removed global keyword and instead used local variables
|
158 |
-
# This is a good practice to avoid polluting the global namespace
|
159 |
github_api_token_local = github_api_token
|
160 |
issues_local = []
|
161 |
github_client_local = None
|
|
|
139 |
|
140 |
|
141 |
### Function to handle chat responsesasync
|
142 |
+
async def respond(
|
143 |
command: str,
|
144 |
history: List[Tuple[str, str]],
|
145 |
system_message: str,
|
|
|
154 |
programming_language: str,
|
155 |
*args
|
156 |
) -> str:
|
|
|
|
|
157 |
github_api_token_local = github_api_token
|
158 |
issues_local = []
|
159 |
github_client_local = None
|