Spaces:
Running
Running
Upload app_space.py
Browse files- app_space.py +5 -0
app_space.py
CHANGED
|
@@ -77,7 +77,12 @@ def plot_gating(signal_text: str):
|
|
| 77 |
np_img = mpimg.imread(buf)
|
| 78 |
windows = meta.get("windows", [])
|
| 79 |
table_rows = []
|
|
|
|
| 80 |
for w in windows:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
table_rows.append(
|
| 82 |
[
|
| 83 |
w.get("start"),
|
|
|
|
| 77 |
np_img = mpimg.imread(buf)
|
| 78 |
windows = meta.get("windows", [])
|
| 79 |
table_rows = []
|
| 80 |
+
seen = set()
|
| 81 |
for w in windows:
|
| 82 |
+
key = (w.get("start"), w.get("end"), bool(w.get("selected")), bool(w.get("forced", False)))
|
| 83 |
+
if key in seen:
|
| 84 |
+
continue
|
| 85 |
+
seen.add(key)
|
| 86 |
table_rows.append(
|
| 87 |
[
|
| 88 |
w.get("start"),
|