Deploying an ML model for numerical data
Before we create the UI, we need to define a function that will take care of making predictions using a model that we trained in the previous chapter. This function takes the parameters as a user would see them and then makes a prediction. The following code fragment contains this function:
import gradio as gr import pandas as pd import joblib def predict_defects(cbo, dcc, exportCoupling, importCoupling, nom, ...