Gradio 快速构建机器学习web可视化界面心得

1.操作完成提示

    try:
        # 对输入的字符串代码进行编译运行
        exec(get_test_code_example)
        gr.Info("Model testing completed successfully.")
    except:
        raise gr.Error("Model testing failed.")

用到了gr.Info() 和gr.Errot()

你可能感兴趣的:(python)