Revert gradio + strip schema-breaking kwargs
Browse files401 unmodified lines402403404405406407408409405406407408409410411415416417412413414419420421422415416417418419420427421422423424401 unmodified lines ) with gr.Row(): with gr.Column(): model_py = gr.File(label="Model definition (.py)", file_types=[".py"]) weights = gr.File(label="Weights (.pt, optional for " "sanity checks)", file_types=[".pt", ".pth"]) model_py = gr.File(label="Model definition (.py)") weights = gr.File(label="Weights (.pt, optional)") class_name = gr.Textbox(label="Class name", value="Model") output_kind = gr.Radio( ["watts", "shares"], value="watts", label="Output kind", info="watts = per-category power directly; " "shares = renormalise + scale by aggregate") label="Output kind (watts = per-category power; " "shares = renormalise + scale by aggregate)") max_frames = gr.Slider(50, 60000, value=500, step=50, label="Frames to score", info="Free-tier CPU. Default 500 " "≈ 1–2 min. Full 60 000 " "frames may take longer.") label="Frames to score " "(free CPU: 500 ≈ 1–2 min)") batch_size = gr.Slider(1, 64, value=16, step=1, label="Batch size") run_btn = gr.Button("Run benchmark", variant="primary") with gr.Column(): report_md = gr.Markdown(label="Report") report_md = gr.Markdown() score_file = gr.File(label="Download score.json") run_btn.click( run_benchmark_upload,app.py+7-13