File size: 215 Bytes
8c22399
 
 
627d3d7
8c22399
 
 
1
2
3
4
5
6
7
8
def dcls_patch():
    from gradio import data_classes

    # https://github.com/gradio-app/gradio/pull/8530
    data_classes.PredictBody.__get_pydantic_json_schema__ = lambda x, y: {
        "type": "object",
    }