acecalisto3 commited on
Commit
9b02ced
·
verified ·
1 Parent(s): 24f6c5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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