Error after deploying application: `pandas.errors.ParserError: Error tokenizing data. C error: Expected 1 fields in line 65, saw 6` but app runs fine locally

I’m facing some issues. My app was working just fine when run locally, but after I deployed it, it throws an error “whoops something went wrong an error has been logged streamlit”. I checked my logs and the error was something related to the pandas library.
The error is:
pandas.errors.ParserError: Error tokenizing data. C error: Expected 1 fields in line 65, saw 6
I do not get this error when i run the app locally, could you please help me? What could have gone wrong?
The github repo is: GitHub - advikmaniar/ML-Healthcare-Web-App: This is a Machine Learning web app developed using Python and StreamLit. Uses algorithms like Logistic Regression, KNN, SVM, Random Forest, Gradient Boosting, and XGBoost to build powerful and accurate models to predict the status of the user (High Risk / Low Risk) with respect to Heart Attack and Breast Cancer.
The dataset is here: ML-Healthcare-Web-App/Data at main · advikmaniar/ML-Healthcare-Web-App · GitHub

Could someone please help?

Pandas is having issues interpreting the table of data you passed it to read.

  1. Try explicitly setting the delimiter
df = pandas.read_csv(filepath, sep='delimiter', header=None)
  1. or skipping the bad lines in the data completely
data = pd.read_csv('file1.csv', error_bad_lines=False)