Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,8 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
2 |
from typing import Optional, Union, List, Dict, Any, Tuple
|
3 |
import subprocess
|
4 |
from pathlib import Path
|
@@ -178,7 +182,7 @@ class GitHubBot:
|
|
178 |
if self.temp_dir and os.path.exists(self.temp_dir):
|
179 |
shutil.rmtree(self.temp_dir)
|
180 |
|
181 |
-
|
182 |
resolution: str, ai_solution: str) -> str:
|
183 |
"""Create a comprehensive resolution document"""
|
184 |
return f"""# Resolution for Issue #{issue_number}
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import langchain
|
3 |
+
import huggingface-hub
|
4 |
+
import python-dotenv
|
5 |
+
import PyYaml
|
6 |
from typing import Optional, Union, List, Dict, Any, Tuple
|
7 |
import subprocess
|
8 |
from pathlib import Path
|
|
|
182 |
if self.temp_dir and os.path.exists(self.temp_dir):
|
183 |
shutil.rmtree(self.temp_dir)
|
184 |
|
185 |
+
def _create_resolution_document(self, issue_number: int, severity: IssueSeverity,
|
186 |
resolution: str, ai_solution: str) -> str:
|
187 |
"""Create a comprehensive resolution document"""
|
188 |
return f"""# Resolution for Issue #{issue_number}
|