Spaces:
Running
Running
Commit
·
2ee3fae
1
Parent(s):
a394002
Enhance Visualization
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ unique_labels = df['label'].unique().tolist()
|
|
45 |
TOOLTIPS = """
|
46 |
<div>
|
47 |
<div>
|
48 |
-
<img src="@img{safe}" style="width:
|
49 |
</div>
|
50 |
<div>
|
51 |
<span style="font-size: 17px; font-weight: bold;">@label</span>
|
@@ -83,7 +83,7 @@ def render_plot(selected_labels):
|
|
83 |
label=subset['label'],
|
84 |
img=subset['img']
|
85 |
))
|
86 |
-
p.scatter('x', 'y', size=
|
87 |
|
88 |
p.legend.title = "Subsets"
|
89 |
p.legend.location = "top_right"
|
|
|
45 |
TOOLTIPS = """
|
46 |
<div>
|
47 |
<div>
|
48 |
+
<img src="@img{safe}" style="width:128px; height:auto; float: left; margin: 0px 15px 15px 0px;" alt="@img" border="2"></img>
|
49 |
</div>
|
50 |
<div>
|
51 |
<span style="font-size: 17px; font-weight: bold;">@label</span>
|
|
|
83 |
label=subset['label'],
|
84 |
img=subset['img']
|
85 |
))
|
86 |
+
p.scatter('x', 'y', size=12, source=source, color=color, legend_label=label)
|
87 |
|
88 |
p.legend.title = "Subsets"
|
89 |
p.legend.location = "top_right"
|