Spaces:
Build error
Build error
feat: Cont'd np coercing for interactive plot
Browse files
app.py
CHANGED
@@ -41,6 +41,7 @@ def draw_interactive_scatter_plot(
|
|
41 |
) -> Figure:
|
42 |
# Normalize values to range between 0-255, to assign a color for each value
|
43 |
values = np.array(values)
|
|
|
44 |
max_value = values.max()
|
45 |
min_value = values.min()
|
46 |
if max_value - min_value == 0:
|
|
|
41 |
) -> Figure:
|
42 |
# Normalize values to range between 0-255, to assign a color for each value
|
43 |
values = np.array(values)
|
44 |
+
labels = np.array(labels)
|
45 |
max_value = values.max()
|
46 |
min_value = values.min()
|
47 |
if max_value - min_value == 0:
|