Spaces:
Sleeping
Sleeping
Fixed plotting
Browse filesFixed plotting to follow Gradio's convention
app.py
CHANGED
@@ -182,8 +182,9 @@ with gr.Blocks() as interface:
|
|
182 |
|
183 |
with gr.Row():
|
184 |
gr.BarPlot(
|
185 |
-
|
186 |
-
|
|
|
187 |
title="Win Rate vs Random Bot",
|
188 |
x_label="LLM Model",
|
189 |
y_label="Win Rate (%)"
|
@@ -191,8 +192,9 @@ with gr.Blocks() as interface:
|
|
191 |
|
192 |
with gr.Row():
|
193 |
gr.BarPlot(
|
194 |
-
|
195 |
-
|
|
|
196 |
title="Average Generation Time",
|
197 |
x_label="LLM Model",
|
198 |
y_label="Time (sec)"
|
@@ -210,8 +212,9 @@ with gr.Blocks() as interface:
|
|
210 |
|
211 |
with gr.Row():
|
212 |
gr.BarPlot(
|
213 |
-
|
214 |
-
|
|
|
215 |
title="Illegal Moves by Model",
|
216 |
x_label="LLM Model",
|
217 |
y_label="# of Illegal Moves"
|
@@ -220,9 +223,5 @@ with gr.Blocks() as interface:
|
|
220 |
with gr.Row():
|
221 |
gr.Dataframe(value=illegal_df, label="Illegal Move Summary")
|
222 |
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
# Launch the Gradio interface
|
228 |
interface.launch()
|
|
|
182 |
|
183 |
with gr.Row():
|
184 |
gr.BarPlot(
|
185 |
+
value=metrics_df,
|
186 |
+
x="agent_name",
|
187 |
+
y="win vs_random (%)",
|
188 |
title="Win Rate vs Random Bot",
|
189 |
x_label="LLM Model",
|
190 |
y_label="Win Rate (%)"
|
|
|
192 |
|
193 |
with gr.Row():
|
194 |
gr.BarPlot(
|
195 |
+
value=metrics_df,
|
196 |
+
x="agent_name",
|
197 |
+
y="avg_generation_time (sec)",
|
198 |
title="Average Generation Time",
|
199 |
x_label="LLM Model",
|
200 |
y_label="Time (sec)"
|
|
|
212 |
|
213 |
with gr.Row():
|
214 |
gr.BarPlot(
|
215 |
+
value=illegal_df,
|
216 |
+
x="agent_name",
|
217 |
+
y="illegal_moves",
|
218 |
title="Illegal Moves by Model",
|
219 |
x_label="LLM Model",
|
220 |
y_label="# of Illegal Moves"
|
|
|
223 |
with gr.Row():
|
224 |
gr.Dataframe(value=illegal_df, label="Illegal Move Summary")
|
225 |
|
|
|
|
|
|
|
|
|
226 |
# Launch the Gradio interface
|
227 |
interface.launch()
|