Flask - PyCharm BootCamp 3rd Assignment

Hi
I am following the video on https://www.youtube.com/watch?v=Q5JyawS8f5Q&feature=emb_logo
I also downloaded the files from https://github.com/codebasics/py/tree/master/DataScience/BangloreHomePrices

when I am trying
http://127.0.0.1:5000/predict_home_price

I am getting following error

Bad Request

The browser (or proxy) sent a request that this server could not understand.

screenshot

So could someone please help me out why I am getting this error??

I tried to follow the similar method for Bootcamp Advance 3rd Assignment - Loan Prediction in that too I was getting the same error. So I thought I was doing something wrong but When I tried House Pricing example I got the same error.

So what should I do… I have never used flask, pycharm IDE before.

Please help me out!!

In your server.py, you’d have to change your return value for the predict_home_price function to render_template(‘app.html’, response).

Don’t forget to import render_template from flask.

I’m having issues with deploying my model too but then…:weary::weary:

Hey thanks for the reply…
My problem is solved and i have submitted my heroku link too…

Boyyy, I really don’t know what i’m doing wrong but i’m yet to get mine to work