beginner flask app

Can you run this on your side and see what you get?

Also, can you change it to display the corresponding value when a user gives a column name (e.g. 'food_wgt') as input in the textbox?