acecalisto3 commited on
Commit
ef69df4
·
verified ·
1 Parent(s): 62c7f4c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -19,8 +19,6 @@ import http.client
19
  from functools import lru_cache
20
  import json
21
  from concurrent.futures import ThreadPoolExecutor
22
- UserWarning
23
- class UserWarning
24
 
25
 
26
  # Example usage
@@ -31,6 +29,7 @@ REQUEST_TIMEOUT = 30
31
  RATE_LIMIT_THRESHOLD = 10
32
  CACHE_TTL = 300 # 5 minutes cache
33
 
 
34
  # Suppress warnings and set environment
35
  warnings.filterwarnings('ignore', category='UserWarning')
36
  os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
 
19
  from functools import lru_cache
20
  import json
21
  from concurrent.futures import ThreadPoolExecutor
 
 
22
 
23
 
24
  # Example usage
 
29
  RATE_LIMIT_THRESHOLD = 10
30
  CACHE_TTL = 300 # 5 minutes cache
31
 
32
+ class UserWarning:
33
  # Suppress warnings and set environment
34
  warnings.filterwarnings('ignore', category='UserWarning')
35
  os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'