Spaces:
Build error
Build error
feat: Adapting values for interactive plot to np array
Browse files
app.py
CHANGED
@@ -40,6 +40,7 @@ def draw_interactive_scatter_plot(
|
|
40 |
texts: np.ndarray, xs: np.ndarray, ys: np.ndarray, values: np.ndarray, labels: np.ndarray, text_column: str, label_column: str
|
41 |
) -> Figure:
|
42 |
# Normalize values to range between 0-255, to assign a color for each value
|
|
|
43 |
max_value = values.max()
|
44 |
min_value = values.min()
|
45 |
if max_value - min_value == 0:
|
|
|
40 |
texts: np.ndarray, xs: np.ndarray, ys: np.ndarray, values: np.ndarray, labels: np.ndarray, text_column: str, label_column: str
|
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:
|