Pybunny commited on
Commit
f1a0624
·
verified ·
1 Parent(s): ba9d7ae

Drop Upload-your-own tab

Browse files
Files changed (1) hide show
  1. app.py +0 -9
app.py CHANGED
@@ -440,15 +440,6 @@ def build_ui() -> gr.Blocks:
440
  plot_a = gr.Plot()
441
  lab_a = gr.JSON(label="Predicted power per category (W)")
442
  btn.click(run_example, ex, [plot_a, lab_a])
443
- with gr.TabItem("Upload your own"):
444
- up = gr.File(label="V/I segment (.npy, shape (2, 96000), "
445
- "FLAC-normalised float in [-1, 1])")
446
- agg = gr.Slider(0, 8000, value=300, step=10,
447
- label="Aggregate active power (W)")
448
- btn2 = gr.Button("Run", variant="primary")
449
- plot_b = gr.Plot()
450
- lab_b = gr.JSON(label="Predicted power per category (W)")
451
- btn2.click(run_upload, [up, agg], [plot_b, lab_b])
452
  with gr.TabItem("Benchmark your model"):
453
  gr.Markdown(
454
  "Upload a `.pt` checkpoint trained on the bundled "
 
440
  plot_a = gr.Plot()
441
  lab_a = gr.JSON(label="Predicted power per category (W)")
442
  btn.click(run_example, ex, [plot_a, lab_a])
 
 
 
 
 
 
 
 
 
443
  with gr.TabItem("Benchmark your model"):
444
  gr.Markdown(
445
  "Upload a `.pt` checkpoint trained on the bundled "