Spaces:
Sleeping
Sleeping
Commit
·
c5aa1cd
1
Parent(s):
3651cd4
Fix KeyError: 'Jaccard Similarity (%)' by properly populating heatmap_tabs dictionary
Browse files
app.py
CHANGED
@@ -301,6 +301,8 @@ The structural analysis combines multiple similarity metrics to create a compreh
|
|
301 |
# Add the appropriate plot
|
302 |
if metric_key == "Word Counts":
|
303 |
word_count_plot = gr.Plot(label="Word Counts per Segment", show_label=False, scale=1, elem_classes="metric-description")
|
|
|
|
|
304 |
|
305 |
# Structural Analysis Tab
|
306 |
with gr.Tab("Structural Analysis"):
|
|
|
301 |
# Add the appropriate plot
|
302 |
if metric_key == "Word Counts":
|
303 |
word_count_plot = gr.Plot(label="Word Counts per Segment", show_label=False, scale=1, elem_classes="metric-description")
|
304 |
+
else:
|
305 |
+
heatmap_tabs[metric_key] = gr.Plot(label=f"Heatmap: {metric_key}", show_label=False, elem_classes="metric-heatmap")
|
306 |
|
307 |
# Structural Analysis Tab
|
308 |
with gr.Tab("Structural Analysis"):
|