Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -135,6 +135,7 @@ def generate_score_chart_laser(dataframe):
|
|
135 |
return fig
|
136 |
|
137 |
# π **Combined Score Visualization for All Models**
|
|
|
138 |
def generate_score_chart_all_models(dataframe):
|
139 |
fig = px.bar(
|
140 |
dataframe.sort_values(by="Score", ascending=True),
|
@@ -143,6 +144,18 @@ def generate_score_chart_all_models(dataframe):
|
|
143 |
title="π All AI & Laser Models Performance",
|
144 |
color_continuous_scale="electric"
|
145 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
fig.update_traces(textposition="outside")
|
147 |
return fig
|
148 |
|
|
|
135 |
return fig
|
136 |
|
137 |
# π **Combined Score Visualization for All Models**
|
138 |
+
# π **Combined Score Visualization for All Models (Large Chart)**
|
139 |
def generate_score_chart_all_models(dataframe):
|
140 |
fig = px.bar(
|
141 |
dataframe.sort_values(by="Score", ascending=True),
|
|
|
144 |
title="π All AI & Laser Models Performance",
|
145 |
color_continuous_scale="electric"
|
146 |
)
|
147 |
+
|
148 |
+
# Increase the size for better visibility of all models
|
149 |
+
fig.update_layout(
|
150 |
+
height=800, # Increase the height to make the chart larger
|
151 |
+
width=1200, # Increase the width to fit all the data
|
152 |
+
title_x=0.5, # Center the title
|
153 |
+
title_y=0.95, # Adjust title position
|
154 |
+
margin=dict(l=200, r=50, t=50, b=50), # Adjust margins for better readability
|
155 |
+
xaxis_title="Score", # X-axis title
|
156 |
+
yaxis_title="Model", # Y-axis title
|
157 |
+
)
|
158 |
+
|
159 |
fig.update_traces(textposition="outside")
|
160 |
return fig
|
161 |
|