Revert gradio + strip schema-breaking kwargs
Browse files401 unmodified lines402403404405406407408409410411412413414415416417418419420421422423424425426427428429430401 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"])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")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.")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")score_file = gr.File(label="Download score.json")run_btn.click(run_benchmark_upload,401 unmodified lines402403404405406407408409410411412413414415416417418419420421422423424401 unmodified lines)with gr.Row():with gr.Column():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 (watts = per-category power; ""shares = renormalise + scale by aggregate)")max_frames = gr.Slider(50, 60000, value=500, step=50,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()score_file = gr.File(label="Download score.json")run_btn.click(run_benchmark_upload,
app.py+7-13