Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ import deepspeed # Import DeepSpeed for ZeroGPU
|
|
21 |
@spaces.GPU
|
22 |
|
23 |
# Suppress warnings
|
24 |
-
warnings.filterwarnings('ignore', category=UserWarning)
|
25 |
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
|
26 |
|
27 |
def initialize_zero_gpu():
|
@@ -129,7 +129,7 @@ class GitHubBot:
|
|
129 |
def __init__(self):
|
130 |
self.github_api = None
|
131 |
|
132 |
-
def initialize_api(self, token: str):
|
133 |
"""Initialize GitHub API with token"""
|
134 |
self.github_api = GitHubAPI(token)
|
135 |
|
|
|
21 |
@spaces.GPU
|
22 |
|
23 |
# Suppress warnings
|
24 |
+
warnings.filterwarnings('ignore', category=UserWarning, module='__main__')
|
25 |
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
|
26 |
|
27 |
def initialize_zero_gpu():
|
|
|
129 |
def __init__(self):
|
130 |
self.github_api = None
|
131 |
|
132 |
+
def initialize_api(self, token: str ):
|
133 |
"""Initialize GitHub API with token"""
|
134 |
self.github_api = GitHubAPI(token)
|
135 |
|