Spaces:
Running
Running
Synced repo using 'sync_with_huggingface' Github Action
Browse files- demos/compare.py +3 -2
demos/compare.py
CHANGED
@@ -115,6 +115,7 @@ def similarity_plot(sim_data):
|
|
115 |
textfont={
|
116 |
"size": 14,
|
117 |
"family": "JetBrains Mono",
|
|
|
118 |
},
|
119 |
hoverinfo=None,
|
120 |
hovertemplate="ISCC-UNIT: %{y}<br>SIMILARITY: %{x}<extra></extra>",
|
@@ -183,7 +184,7 @@ def bit_matrix_plot(iscc_code):
|
|
183 |
z.append([int(bit) for bit in value])
|
184 |
|
185 |
# Define colors for 0 and 1 bits
|
186 |
-
colorscale = [[0, "#
|
187 |
|
188 |
# Build Plotly Visualization
|
189 |
fig = go.Figure(
|
@@ -297,7 +298,7 @@ def bit_comparison(iscc_code1, iscc_code2):
|
|
297 |
hoverlabel={
|
298 |
"font": {"family": "JetBrains Mono"},
|
299 |
},
|
300 |
-
texttemplate="", # Use "%{text}" for showing bits
|
301 |
textfont={
|
302 |
"size": 14,
|
303 |
"color": "#FFFFFF",
|
|
|
115 |
textfont={
|
116 |
"size": 14,
|
117 |
"family": "JetBrains Mono",
|
118 |
+
"color": "white",
|
119 |
},
|
120 |
hoverinfo=None,
|
121 |
hovertemplate="ISCC-UNIT: %{y}<br>SIMILARITY: %{x}<extra></extra>",
|
|
|
184 |
z.append([int(bit) for bit in value])
|
185 |
|
186 |
# Define colors for 0 and 1 bits
|
187 |
+
colorscale = [[0, "#7ac2f7"], [1, "#0054b2"]]
|
188 |
|
189 |
# Build Plotly Visualization
|
190 |
fig = go.Figure(
|
|
|
298 |
hoverlabel={
|
299 |
"font": {"family": "JetBrains Mono"},
|
300 |
},
|
301 |
+
texttemplate="%{text}", # Use "%{text}" for showing bits
|
302 |
textfont={
|
303 |
"size": 14,
|
304 |
"color": "#FFFFFF",
|