Update labels for model configurations
Browse files
app.py
CHANGED
|
@@ -1037,25 +1037,39 @@ def create_gradio_interface():
|
|
| 1037 |
|
| 1038 |
with gr.Row():
|
| 1039 |
gr.HTML(f"""
|
| 1040 |
-
|
| 1041 |
-
|
| 1042 |
-
|
| 1043 |
-
|
| 1044 |
-
|
| 1045 |
-
|
| 1046 |
-
|
| 1047 |
-
|
| 1048 |
-
|
| 1049 |
-
|
| 1050 |
-
|
| 1051 |
-
|
| 1052 |
-
|
| 1053 |
-
|
| 1054 |
-
|
| 1055 |
-
|
| 1056 |
-
|
| 1057 |
-
|
| 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():
|