fix length bugs
Browse files
app.py
CHANGED
@@ -143,7 +143,7 @@ with demo:
|
|
143 |
leaderboard_table = gr.Dataframe(
|
144 |
value=leaderboard_df,
|
145 |
wrap=True,
|
146 |
-
|
147 |
)
|
148 |
|
149 |
#cols_bar.change(filter_and_search, inputs=[cols_bar, search_bar], outputs=[leaderboard_table])
|
@@ -153,6 +153,7 @@ with demo:
|
|
153 |
detailed_success_rate_table = gr.Dataframe(
|
154 |
value=detailed_success_rate_df,
|
155 |
wrap=True,
|
|
|
156 |
)
|
157 |
|
158 |
with gr.TabItem("Action Counts - Detailed"):
|
@@ -160,6 +161,7 @@ with demo:
|
|
160 |
detailed_action_counts_table = gr.Dataframe(
|
161 |
value=detailed_action_counts_df,
|
162 |
wrap=True,
|
|
|
163 |
)
|
164 |
|
165 |
with gr.TabItem("About"):
|
|
|
143 |
leaderboard_table = gr.Dataframe(
|
144 |
value=leaderboard_df,
|
145 |
wrap=True,
|
146 |
+
column_widths=[350, 120] + [(60 + len(c)) for c in leaderboard_df.columns[2:]],
|
147 |
)
|
148 |
|
149 |
#cols_bar.change(filter_and_search, inputs=[cols_bar, search_bar], outputs=[leaderboard_table])
|
|
|
153 |
detailed_success_rate_table = gr.Dataframe(
|
154 |
value=detailed_success_rate_df,
|
155 |
wrap=True,
|
156 |
+
column_widths=[350, 120] + [(100 + len(c)) for c in detailed_success_rate_df.columns[2:]],
|
157 |
)
|
158 |
|
159 |
with gr.TabItem("Action Counts - Detailed"):
|
|
|
161 |
detailed_action_counts_table = gr.Dataframe(
|
162 |
value=detailed_action_counts_df,
|
163 |
wrap=True,
|
164 |
+
column_widths=[350, 120] + [(100 + len(c)) for c in detailed_action_counts_df.columns[2:]],
|
165 |
)
|
166 |
|
167 |
with gr.TabItem("About"):
|