Spaces:
Sleeping
Sleeping
Synced repo using 'sync_with_huggingface' Github Action
Browse files- dataset_wrangler.py +3 -10
dataset_wrangler.py
CHANGED
@@ -118,22 +118,15 @@ def create_grid(df, palette_columns=["pal_1", "pal_3", "pal_5"]):
|
|
118 |
|
119 |
tt = """
|
120 |
<div>
|
121 |
-
<
|
|
|
|
|
122 |
</div>
|
123 |
"""
|
124 |
|
125 |
p = figure(sizing_mode="stretch_width", max_width=1000, tools=TOOLS)
|
126 |
p.grid.grid_line_color = None
|
127 |
p.axis.visible = False
|
128 |
-
# hover = HoverTool(
|
129 |
-
# # tooltips=[
|
130 |
-
# # ("Title", "@titles"),
|
131 |
-
# # ("Date created", "@created"),
|
132 |
-
# # ("SLV Viewer", "@viewer_link"),
|
133 |
-
# # ]
|
134 |
-
# tt
|
135 |
-
# )
|
136 |
-
|
137 |
hover = HoverTool(tooltips=tt)
|
138 |
p.add_tools(hover)
|
139 |
|
|
|
118 |
|
119 |
tt = """
|
120 |
<div>
|
121 |
+
<p>@title</p>
|
122 |
+
<p>@created</p>
|
123 |
+
<p><a href=@viewer_link{safe}}>@viewer_link{safe}</a></p>
|
124 |
</div>
|
125 |
"""
|
126 |
|
127 |
p = figure(sizing_mode="stretch_width", max_width=1000, tools=TOOLS)
|
128 |
p.grid.grid_line_color = None
|
129 |
p.axis.visible = False
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
hover = HoverTool(tooltips=tt)
|
131 |
p.add_tools(hover)
|
132 |
|