rzanoli commited on
Commit
a91626f
·
1 Parent(s): f4114b4

Update labels for model configurations

Browse files
Files changed (1) hide show
  1. app.py +33 -19
app.py CHANGED
@@ -1037,25 +1037,39 @@ def create_gradio_interface():
1037
 
1038
  with gr.Row():
1039
  gr.HTML(f"""
1040
- <div class="performance-metrics" style="display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px;">
1041
-
1042
- <!-- MODEL COUNTS -->
1043
- <div class="metric-label">Model Configurations Tested: {num_total_models}</div>
1044
- <div class="metric-label">Textual Model Configurations: {num_textual_models}</div>
1045
- <div class="metric-label">Multimodal Model Configurations: {num_multimodal_models}</div>
1046
-
1047
-
1048
- <!-- BEST MODELS -->
1049
- <div class="metric-label" title="Best model evaluated on textual data (regardless of modality)">
1050
- Best Textual Model: {best_textual_model} ({best_textual_score:.2f})
1051
- </div>
1052
-
1053
- <div class="metric-label" title="Best model evaluated on textual + visual/video data">
1054
- Best Multimodal Model: {best_multimodal_model} ({best_multimodal_score:.2f})
1055
- </div>
1056
-
1057
- </div>
1058
- """)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1059
 
1060
  # Grafici affiancati
1061
  with gr.Row():
 
1037
 
1038
  with gr.Row():
1039
  gr.HTML(f"""
1040
+ <div class="performance-metrics" style="display: flex; flex-wrap: wrap; gap: 8px; font-size: 10px;">
1041
+
1042
+ <!-- MODEL COUNTS -->
1043
+ <div class="metric-label" style="padding: 4px; font-weight: bold; display: flex; align-items: center;">
1044
+ <span style="font-size: 12px; color: #4a90e2;">Model Configurations Tested:</span>
1045
+ <span style="display: inline-flex; justify-content: center; align-items: center; width: 20px; height: 20px; border-radius: 50%; background-color: #4a90e2; color: white; text-align: center; font-size: 10px; margin-left: 5px;">{num_total_models}</span>
1046
+ </div>
1047
+
1048
+ <div class="metric-label" style="padding: 4px; font-weight: bold; display: flex; align-items: center;">
1049
+ <span style="font-size: 12px; color: #4a90e2;">Textual Model Configurations:</span>
1050
+ <span style="display: inline-flex; justify-content: center; align-items: center; width: 20px; height: 20px; border-radius: 50%; background-color: #4a90e2; color: white; text-align: center; font-size: 10px; margin-left: 5px;">{num_textual_models}</span>
1051
+ </div>
1052
+
1053
+ <div class="metric-label" style="padding: 4px; font-weight: bold; display: flex; align-items: center;">
1054
+ <span style="font-size: 12px; color: #4a90e2;">Multimodal Model Configurations:</span>
1055
+ <span style="display: inline-flex; justify-content: center; align-items: center; width: 20px; height: 20px; border-radius: 50%; background-color: #4a90e2; color: white; text-align: center; font-size: 10px; margin-left: 5px;">{num_multimodal_models}</span>
1056
+ </div>
1057
+
1058
+ <!-- BEST MODELS -->
1059
+ <div class="metric-label" title="Best model evaluated on textual data (regardless of modality)" style="padding: 4px; display: flex; align-items: center;">
1060
+ <span style="font-size: 12px; color: #4a90e2;">Best Textual Model:</span>
1061
+ <span style="font-size: 12px; color: #333333; margin-left: 5px;">{best_textual_model}</span>
1062
+ <span style="display: inline-flex; justify-content: center; align-items: center; width: 20px; height: 20px; border-radius: 50%; background-color: #e94e77; color: white; text-align: center; font-size: 10px; margin-left: 5px;">{best_textual_score:.2f}</span>
1063
+ </div>
1064
+
1065
+ <div class="metric-label" title="Best model evaluated on textual + visual/video data" style="padding: 4px; display: flex; align-items: center;">
1066
+ <span style="font-size: 12px; color: #4a90e2;">Best Multimodal Model:</span>
1067
+ <span style="font-size: 12px; color: #333333; margin-left: 5px;">{best_multimodal_model}</span>
1068
+ <span style="display: inline-flex; justify-content: center; align-items: center; width: 20px; height: 20px; border-radius: 50%; background-color: #e94e77; color: white; text-align: center; font-size: 10px; margin-left: 5px;">{best_multimodal_score:.2f}</span>
1069
+ </div>
1070
+
1071
+ </div>
1072
+ """)
1073
 
1074
  # Grafici affiancati
1075
  with gr.Row():