fix oob
Browse files
run.py
CHANGED
@@ -7,7 +7,7 @@ import numpy as np
|
|
7 |
if __name__ == "__main__":
|
8 |
df = pd.read_json("sd_dataset.json")
|
9 |
|
10 |
-
data_issues = df["selection"].unique()
|
11 |
spotlight_data_issues = []
|
12 |
for issue in data_issues:
|
13 |
if issue == -1:
|
@@ -19,8 +19,6 @@ if __name__ == "__main__":
|
|
19 |
description=f"Best Images Cluster {issue}",
|
20 |
rows=issue_rows)
|
21 |
spotlight_data_issues.append(new_issue)
|
22 |
-
data_issue_order = np.argsort(data_issues)
|
23 |
-
data_issue_order = data_issue_order[::-1]
|
24 |
|
25 |
|
26 |
|
@@ -35,7 +33,7 @@ if __name__ == "__main__":
|
|
35 |
df,
|
36 |
dtype=dtypes,
|
37 |
layout="spotlight-layout.json",
|
38 |
-
issues=
|
39 |
port=7860,
|
40 |
host="0.0.0.0",
|
41 |
allow_filebrowsing=False
|
|
|
7 |
if __name__ == "__main__":
|
8 |
df = pd.read_json("sd_dataset.json")
|
9 |
|
10 |
+
data_issues = sorted(df["selection"].unique())
|
11 |
spotlight_data_issues = []
|
12 |
for issue in data_issues:
|
13 |
if issue == -1:
|
|
|
19 |
description=f"Best Images Cluster {issue}",
|
20 |
rows=issue_rows)
|
21 |
spotlight_data_issues.append(new_issue)
|
|
|
|
|
22 |
|
23 |
|
24 |
|
|
|
33 |
df,
|
34 |
dtype=dtypes,
|
35 |
layout="spotlight-layout.json",
|
36 |
+
issues=spotlight_data_issues,
|
37 |
port=7860,
|
38 |
host="0.0.0.0",
|
39 |
allow_filebrowsing=False
|