Spaces:
Runtime error
Runtime error
Update plot vis
Browse files- libs/utils.py +1 -1
libs/utils.py
CHANGED
@@ -15,7 +15,7 @@ def plot_result(top_languages):
|
|
15 |
labels={'x': 'Confidence', 'y': 'Language'},
|
16 |
text=scores,
|
17 |
range_x=(0, 115),
|
18 |
-
title=f'Top
|
19 |
color=np.linspace(0, 1, len(scores)),
|
20 |
color_continuous_scale='Viridis'
|
21 |
)
|
|
|
15 |
labels={'x': 'Confidence', 'y': 'Language'},
|
16 |
text=scores,
|
17 |
range_x=(0, 115),
|
18 |
+
title=f'Top {top_k} Detections',
|
19 |
color=np.linspace(0, 1, len(scores)),
|
20 |
color_continuous_scale='Viridis'
|
21 |
)
|