Spaces:
Runtime error
Runtime error
ercanburak
commited on
Commit
•
d123883
1
Parent(s):
8f43f06
fix left pad for some edge cases
Browse files
app.py
CHANGED
@@ -100,10 +100,11 @@ def retrieve_results(selected_dataset, selected_sequence, selected_models, selec
|
|
100 |
pad_txt_str = ",pad={}:{}:0:{}:white".format(w+padding*2, h+font_size+padding*4, pad_height)
|
101 |
text_str = get_text_str(pad_height, w, cur_model['display_name'], font_size)
|
102 |
pad_txt_str = pad_txt_str + "," + text_str
|
103 |
-
elif
|
104 |
-
pad_txt_str = ",pad={}:ih:{}:0:white".format(w + left_pad + padding*2, left_pad)
|
105 |
-
|
106 |
-
|
|
|
107 |
else:
|
108 |
pad_txt_str = ""
|
109 |
|
|
|
100 |
pad_txt_str = ",pad={}:{}:0:{}:white".format(w+padding*2, h+font_size+padding*4, pad_height)
|
101 |
text_str = get_text_str(pad_height, w, cur_model['display_name'], font_size)
|
102 |
pad_txt_str = pad_txt_str + "," + text_str
|
103 |
+
elif col_idx == 0:
|
104 |
+
pad_txt_str = ",pad={}:ih:{}:0:white".format(w + left_pad + padding * 2, left_pad)
|
105 |
+
if len(model_viz) > row_idx > 0:
|
106 |
+
text_str = get_text_str("h", left_pad, model_viz[row_idx]['display_name'], font_size)
|
107 |
+
pad_txt_str = pad_txt_str + "," + text_str
|
108 |
else:
|
109 |
pad_txt_str = ""
|
110 |
|