Spaces:
Runtime error
Runtime error
Terry Zhuo commited on
Commit ·
80443f8
1
Parent(s): a2d883f
update
Browse files146 unmodified lines14714814915015115215315411 unmodified lines166167168169170171146 unmodified linesdef start_evaluation(command, jsonl_file, subset, split):extra = subset + "_" if subset != "full" else ""result_path = os.path.basename(jsonl_file.name).replace(".jsonl", f"_{extra}eval_results.json")with open(result_path, "w") as f:f.write("")for log in stream_logs(command, jsonl_file):yield log, gr.update(value=result_path, label=result_path), gr.update()11 unmodified linesinputs=[command_output, jsonl_file, subset, split],outputs=[log_output, download_btn])if __name__ == "__main__":demo.queue(max_size=300).launch(share=True, server_name="0.0.0.0", server_port=7860)scheduler = BackgroundScheduler()146 unmodified lines14714814915015115211 unmodified lines164165166167168146 unmodified linesdef start_evaluation(command, jsonl_file, subset, split):extra = subset + "_" if subset != "full" else ""result_path = os.path.basename(jsonl_file.name).replace(".jsonl", f"_{extra}eval_results.json")for log in stream_logs(command, jsonl_file):yield log, gr.update(value=result_path, label=result_path), gr.update()11 unmodified linesinputs=[command_output, jsonl_file, subset, split],outputs=[log_output, download_btn])demo.queue(max_size=300).launch(share=True, server_name="0.0.0.0", server_port=7860)scheduler = BackgroundScheduler()
app.py+2-5