rzanoli commited on
Commit
b7af573
·
1 Parent(s): d789006

Add "Last Update" label

Browse files
Files changed (1) hide show
  1. app.py +14 -8
app.py CHANGED
@@ -1033,43 +1033,49 @@ def create_gradio_interface():
1033
  best_multimodal_model = multimodal_df.loc[multimodal_df['Avg. Comb. Perf. ⬆️'].idxmax(), 'Model']
1034
  best_multimodal_score = multimodal_df['Avg. Comb. Perf. ⬆️'].max()
1035
 
1036
-
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():
 
1033
  best_multimodal_model = multimodal_df.loc[multimodal_df['Avg. Comb. Perf. ⬆️'].idxmax(), 'Model']
1034
  best_multimodal_score = multimodal_df['Avg. Comb. Perf. ⬆️'].max()
1035
 
1036
+ last_update_date = "2025-12-07"
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; background-color: #ffffff;">
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; background-color: #ffffff;">
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; background-color: #ffffff;">
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; background-color: #ffffff;">
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; background-color: #ffffff;">
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
+ <!-- LAST UPDATE -->
1072
+ <div class="metric-label" style="padding: 4px; font-weight: bold; display: flex; align-items: center; background-color: #ffffff; border-radius: 5px; height: 40px;">
1073
+ <span style="font-size: 12px; color: #4a90e2;">Last Update:</span>
1074
+ <span style="font-size: 12px; color: #333333; margin-left: 5px;">{last_update_date}</span>
1075
  </div>
1076
+
1077
+ </div>
1078
+ """)
1079
 
1080
  # Grafici affiancati
1081
  with gr.Row():