Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -74,11 +74,13 @@ def plot_confusion_matrix_beamPred(cm, classes, title, save_path, theme=None):
|
|
74 |
# Choose the color scheme based on the user's mode
|
75 |
if theme == 'Dark':
|
76 |
plt.style.use('dark_background') # Use dark mode styling
|
77 |
-
text_color = 'white'
|
|
|
78 |
cmap = 'cividis' # Dark-mode-friendly colormap
|
79 |
else:
|
80 |
plt.style.use('default') # Use default (light) mode styling
|
81 |
-
text_color = 'black'
|
|
|
82 |
cmap = 'Blues' # Light-mode-friendly colormap
|
83 |
|
84 |
plt.figure(figsize=(10, 10))
|
|
|
74 |
# Choose the color scheme based on the user's mode
|
75 |
if theme == 'Dark':
|
76 |
plt.style.use('dark_background') # Use dark mode styling
|
77 |
+
#text_color = 'white'
|
78 |
+
text_color = 'gray'
|
79 |
cmap = 'cividis' # Dark-mode-friendly colormap
|
80 |
else:
|
81 |
plt.style.use('default') # Use default (light) mode styling
|
82 |
+
#text_color = 'black'
|
83 |
+
text_color = 'gray'
|
84 |
cmap = 'Blues' # Light-mode-friendly colormap
|
85 |
|
86 |
plt.figure(figsize=(10, 10))
|