I have done the first task using KNN. Please change the path of the train_csv file according to your system to run the program. I have completed the gradio implementation in the notebook itself. Please click on the notebook to view my work and the Gradio interface.