derek-thomas commited on
Commit
2eb3b22
·
verified ·
1 Parent(s): 96da1b1

Re-arranging

Browse files
Files changed (1) hide show
  1. app.py +14 -15
app.py CHANGED
@@ -485,6 +485,20 @@ with gr.Blocks() as demo:
485
  """)
486
  gr.Markdown("## Best Config")
487
  gr.HTML(best_config.transpose().to_html(header=False))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
488
  with gr.Tab("Sanity Checks"):
489
 
490
  with gr.Tab("Failed Requests"):
@@ -523,20 +537,5 @@ with gr.Blocks() as demo:
523
  gr.Plot(plot_accuracy_distribution(df))
524
  gr.Markdown(accuracy_md2)
525
  gr.Dataframe(top_outliers(df))
526
- with gr.Tab("Cost Analysis"):
527
- with gr.Tab("Best Image by Cost Savings"):
528
- gr.Markdown(best_image_by_cost_savings_md)
529
- for fig in best_image_by_cost_savings(df):
530
- gr.Plot(fig)
531
- with gr.Tab("Cost vs Latency"):
532
- gr.Markdown(cost_vs_latency_md)
533
- gr.Plot(plot_cost_vs_latency(df))
534
-
535
- with gr.Tab("Cost vs VUs & Batch"):
536
- gr.Markdown(contour_md)
537
- for hw in df["hw_type"].unique():
538
- for img in df["image"].unique():
539
- df_hw_img = df[(df["hw_type"] == hw) & (df["image"] == img) & (df["vus"] > 20)].copy()
540
- gr.Plot(plot_cost_vs_vus_batch(df_hw_img, hw=hw, img=img))
541
 
542
  demo.launch()
 
485
  """)
486
  gr.Markdown("## Best Config")
487
  gr.HTML(best_config.transpose().to_html(header=False))
488
+ with gr.Tab("Cost Analysis"):
489
+ with gr.Tab("Cost vs VUs & Batch"):
490
+ gr.Markdown(contour_md)
491
+ for hw in df["hw_type"].unique():
492
+ for img in df["image"].unique():
493
+ df_hw_img = df[(df["hw_type"] == hw) & (df["image"] == img) & (df["vus"] > 20)].copy()
494
+ gr.Plot(plot_cost_vs_vus_batch(df_hw_img, hw=hw, img=img))
495
+ with gr.Tab("Best Image by Cost Savings"):
496
+ gr.Markdown(best_image_by_cost_savings_md)
497
+ for fig in best_image_by_cost_savings(df):
498
+ gr.Plot(fig)
499
+ with gr.Tab("Cost vs Latency"):
500
+ gr.Markdown(cost_vs_latency_md)
501
+ gr.Plot(plot_cost_vs_latency(df))
502
  with gr.Tab("Sanity Checks"):
503
 
504
  with gr.Tab("Failed Requests"):
 
537
  gr.Plot(plot_accuracy_distribution(df))
538
  gr.Markdown(accuracy_md2)
539
  gr.Dataframe(top_outliers(df))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
540
 
541
  demo.launch()