Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -166,7 +166,7 @@ def process_and_visualize(file_content):
|
|
166 |
|
167 |
output_text = f"Average Performance per Model:\n{averages.sort_values(by='Average Performance').to_string()}"
|
168 |
|
169 |
-
return output_text, image_avg, image_line, image_heatmap, image_boxplot, plotly_avg, plotly_tasks
|
170 |
|
171 |
if __name__ == "__main__":
|
172 |
|
@@ -182,10 +182,8 @@ if __name__ == "__main__":
|
|
182 |
gr.Image(label="Matplotlib Task Performance Heatmap"),
|
183 |
gr.Image(label="Matplotlib Performance Distribution Boxplot"),
|
184 |
gr.HTML(label="Plotly Average Performance Chart"),
|
185 |
-
|
186 |
-
|
187 |
-
label="Task Charts"
|
188 |
-
),
|
189 |
],
|
190 |
title="LLM Benchmark Visualizer",
|
191 |
description="Upload your LLM benchmark data and visualize the results."
|
|
|
166 |
|
167 |
output_text = f"Average Performance per Model:\n{averages.sort_values(by='Average Performance').to_string()}"
|
168 |
|
169 |
+
return output_text, image_avg, image_line, image_heatmap, image_boxplot, plotly_avg, list(plotly_tasks.values())
|
170 |
|
171 |
if __name__ == "__main__":
|
172 |
|
|
|
182 |
gr.Image(label="Matplotlib Task Performance Heatmap"),
|
183 |
gr.Image(label="Matplotlib Performance Distribution Boxplot"),
|
184 |
gr.HTML(label="Plotly Average Performance Chart"),
|
185 |
+
gr.TabbedInterface([gr.HTML(label=f"Plotly {task} Chart") for task in task_names], label="Task Charts")
|
186 |
+
|
|
|
|
|
187 |
],
|
188 |
title="LLM Benchmark Visualizer",
|
189 |
description="Upload your LLM benchmark data and visualize the results."
|