Spaces:
Sleeping
Sleeping
Commit
·
f7e3ef0
1
Parent(s):
357377d
Fix Bug
Browse files
app.py
CHANGED
|
@@ -1608,19 +1608,19 @@ def run_model(model_name):
|
|
| 1608 |
})
|
| 1609 |
invisible_renderer = heatmap_fig.circle('x', 'y', size=10, source=source_points, fill_alpha=0, line_alpha=0.5)
|
| 1610 |
|
| 1611 |
-
if select_extra_dataset_hm != "-":
|
| 1612 |
-
|
| 1613 |
-
|
| 1614 |
-
|
| 1615 |
-
|
| 1616 |
-
|
| 1617 |
-
|
| 1618 |
-
|
| 1619 |
-
|
| 1620 |
-
|
| 1621 |
-
|
| 1622 |
-
|
| 1623 |
-
|
| 1624 |
|
| 1625 |
hover_tool_points = HoverTool(renderers=[invisible_renderer], tooltips=TOOLTIPS)
|
| 1626 |
heatmap_fig.add_tools(hover_tool_points)
|
|
|
|
| 1608 |
})
|
| 1609 |
invisible_renderer = heatmap_fig.circle('x', 'y', size=10, source=source_points, fill_alpha=0, line_alpha=0.5)
|
| 1610 |
|
| 1611 |
+
# if select_extra_dataset_hm != "-":
|
| 1612 |
+
# df_extra = df_all["synthetic"][df_all["synthetic"]["source"] == select_extra_dataset_hm].copy()
|
| 1613 |
+
# df_extra["x"] = df_extra[x_comp]
|
| 1614 |
+
# df_extra["y"] = df_extra[y_comp]
|
| 1615 |
+
# if 'name' not in df_extra.columns:
|
| 1616 |
+
# df_extra["name"] = df_extra["img"].apply(lambda x: x.split("/")[-1].replace(".png", "") if isinstance(x, str) else x)
|
| 1617 |
+
# source_extra_points = ColumnDataSource(data={
|
| 1618 |
+
# 'x': df_extra['x'],
|
| 1619 |
+
# 'y': df_extra['y'],
|
| 1620 |
+
# 'img': df_extra['img'],
|
| 1621 |
+
# 'label': df_extra['name']
|
| 1622 |
+
# })
|
| 1623 |
+
# heatmap_fig.circle('x', 'y', size=5, source=source_extra_points, fill_alpha=0, line_alpha=0.5, color="purple")
|
| 1624 |
|
| 1625 |
hover_tool_points = HoverTool(renderers=[invisible_renderer], tooltips=TOOLTIPS)
|
| 1626 |
heatmap_fig.add_tools(hover_tool_points)
|