Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,6 @@ import signal
|
|
3 |
import warnings
|
4 |
import shutil
|
5 |
import logging
|
6 |
-
import spaces
|
7 |
import time
|
8 |
import os
|
9 |
from datetime import datetime
|
@@ -19,7 +18,7 @@ import torch
|
|
19 |
import deepspeed # Import DeepSpeed for ZeroGPU
|
20 |
|
21 |
# Suppress warnings
|
22 |
-
warnings.filterwarnings('ignore', category=
|
23 |
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
|
24 |
|
25 |
def initialize_zero_gpu():
|
@@ -112,7 +111,7 @@ class GitHubAPI:
|
|
112 |
def get_issues(self, owner: str, repo: str, state: str = 'open') -> List[Dict]:
|
113 |
"""Fetch repository issues"""
|
114 |
if not self._check_rate_limit():
|
115 |
-
|
116 |
|
117 |
try:
|
118 |
response = requests.get(f"{self.base_url}/repos/{owner}/{repo}/issues", headers=self.headers, params={'state': state})
|
@@ -227,7 +226,7 @@ custom_css = """
|
|
227 |
transition: all 0.2s;
|
228 |
}
|
229 |
.button-primary {
|
230 |
-
background: #
|
231 |
color: white;
|
232 |
}
|
233 |
.button-success {
|
|
|
3 |
import warnings
|
4 |
import shutil
|
5 |
import logging
|
|
|
6 |
import time
|
7 |
import os
|
8 |
from datetime import datetime
|
|
|
18 |
import deepspeed # Import DeepSpeed for ZeroGPU
|
19 |
|
20 |
# Suppress warnings
|
21 |
+
warnings.filterwarnings('ignore', category=User Warning)
|
22 |
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
|
23 |
|
24 |
def initialize_zero_gpu():
|
|
|
111 |
def get_issues(self, owner: str, repo: str, state: str = 'open') -> List[Dict]:
|
112 |
"""Fetch repository issues"""
|
113 |
if not self._check_rate_limit():
|
114 |
+
return []
|
115 |
|
116 |
try:
|
117 |
response = requests.get(f"{self.base_url}/repos/{owner}/{repo}/issues", headers=self.headers, params={'state': state})
|
|
|
226 |
transition: all 0.2s;
|
227 |
}
|
228 |
.button-primary {
|
229 |
+
background: #570 df8;
|
230 |
color: white;
|
231 |
}
|
232 |
.button-success {
|