Spaces:
Running
Running
fix dict
Browse files- interfaces/cap_minor.py +1 -1
interfaces/cap_minor.py
CHANGED
@@ -84,7 +84,7 @@ def predict(text, model_id, tokenizer_id):
|
|
84 |
|
85 |
html = ""
|
86 |
first = True
|
87 |
-
for label, prob in first_n_items
|
88 |
bar_color = "#e0d890" if first else "#ccc"
|
89 |
text_color = "black"
|
90 |
bar_width = int(prob * 100)
|
|
|
84 |
|
85 |
html = ""
|
86 |
first = True
|
87 |
+
for label, prob in first_n_items:
|
88 |
bar_color = "#e0d890" if first else "#ccc"
|
89 |
text_color = "black"
|
90 |
bar_width = int(prob * 100)
|