Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,15 +17,9 @@ import http.client
|
|
17 |
import torch
|
18 |
import deepspeed # Import DeepSpeed for ZeroGPU
|
19 |
|
20 |
-
#
|
21 |
-
class UserWarning(Warning):
|
22 |
-
pass
|
23 |
-
|
24 |
-
# Suppress your custom warning
|
25 |
warnings.filterwarnings('ignore', category=UserWarning)
|
26 |
-
|
27 |
-
# Example usage of the custom warning
|
28 |
-
warnings.warn("wrkarnd", UserWarning)
|
29 |
|
30 |
def initialize_zero_gpu():
|
31 |
"""Initialize Hugging Face ZeroGPU"""
|
@@ -232,7 +226,7 @@ custom_css = """
|
|
232 |
transition: all 0.2s;
|
233 |
}
|
234 |
.button-primary {
|
235 |
-
background: #
|
236 |
color: white;
|
237 |
}
|
238 |
.button-success {
|
|
|
17 |
import torch
|
18 |
import deepspeed # Import DeepSpeed for ZeroGPU
|
19 |
|
20 |
+
# Suppress warnings
|
|
|
|
|
|
|
|
|
21 |
warnings.filterwarnings('ignore', category=UserWarning)
|
22 |
+
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
|
|
|
|
|
23 |
|
24 |
def initialize_zero_gpu():
|
25 |
"""Initialize Hugging Face ZeroGPU"""
|
|
|
226 |
transition: all 0.2s;
|
227 |
}
|
228 |
.button-primary {
|
229 |
+
background: #570df8;
|
230 |
color: white;
|
231 |
}
|
232 |
.button-success {
|