Spaces:
Runtime error
Runtime error
Updated metrics
Browse files
app.py
CHANGED
|
@@ -64,8 +64,8 @@ theme = gr.themes.Soft(
|
|
| 64 |
|
| 65 |
attributes = vars(theme)
|
| 66 |
for attr_name, attr_value in attributes.items():
|
| 67 |
-
if isinstance(
|
| 68 |
-
if attr_name.endswith('_dark') and attr_value is not None:
|
| 69 |
attr_name_without_suffix = attr_name[:-5]
|
| 70 |
attributes[attr_name_without_suffix] = attr_value
|
| 71 |
# if 'radius' in attr_name:
|
|
|
|
| 64 |
|
| 65 |
attributes = vars(theme)
|
| 66 |
for attr_name, attr_value in attributes.items():
|
| 67 |
+
if isinstance(attr_value, str):
|
| 68 |
+
if attr_name.endswith('_dark') and attr_value is not None and ('focus' not in attr_name):
|
| 69 |
attr_name_without_suffix = attr_name[:-5]
|
| 70 |
attributes[attr_name_without_suffix] = attr_value
|
| 71 |
# if 'radius' in attr_name:
|