from app import app
import regression
from flask import request, jsonify, render_template
import numpy as np

# @app.route('/')
# @app.route('/index')
@app.route('/<string:page_name>/')
def render_static(page_name):
    return render_template('%s.html' % page_name)


@app.route('/predict')
def predict():
    neighborhood = request.args.get('neighborhood')
    layout = request.args.get('layout')
    bathrooms = request.args.get('bathrooms')
    square_footage = request.args.get('square_footage')

    predicted_price = regression.run([{
        'neighborhood': neighborhood,
        'layout': layout, 
        'bathrooms': bathrooms,
        'square_footage': int(square_footage)
    }])

    return jsonify(predicted_price[0][0])

6377d062bbd4765b4c6de90d3f2a6fdaba22ceb4
<mask token>

<mask token>


@app.route('/predict')
def predict():
    neighborhood = request.args.get('neighborhood')
    layout = request.args.get('layout')
    bathrooms = request.args.get('bathrooms')
    square_footage = request.args.get('square_footage')
    predicted_price = regression.run([{'neighborhood': neighborhood,
        'layout': layout, 'bathrooms': bathrooms, 'square_footage': int(
        square_footage)}])
    return jsonify(predicted_price[0][0])

<mask token>


@app.route('/<string:page_name>/')
def render_static(page_name):
    return render_template('%s.html' % page_name)


@app.route('/predict')
def predict():
    neighborhood = request.args.get('neighborhood')
    layout = request.args.get('layout')
    bathrooms = request.args.get('bathrooms')
    square_footage = request.args.get('square_footage')
    predicted_price = regression.run([{'neighborhood': neighborhood,
        'layout': layout, 'bathrooms': bathrooms, 'square_footage': int(
        square_footage)}])
    return jsonify(predicted_price[0][0])

from app import app
import regression
from flask import request, jsonify, render_template
import numpy as np


@app.route('/<string:page_name>/')
def render_static(page_name):
    return render_template('%s.html' % page_name)


@app.route('/predict')
def predict():
    neighborhood = request.args.get('neighborhood')
    layout = request.args.get('layout')
    bathrooms = request.args.get('bathrooms')
    square_footage = request.args.get('square_footage')
    predicted_price = regression.run([{'neighborhood': neighborhood,
        'layout': layout, 'bathrooms': bathrooms, 'square_footage': int(
        square_footage)}])
    return jsonify(predicted_price[0][0])

from app import app
import regression
from flask import request, jsonify, render_template
import numpy as np

# @app.route('/')
# @app.route('/index')
@app.route('/<string:page_name>/')
def render_static(page_name):
    return render_template('%s.html' % page_name)


@app.route('/predict')
def predict():
    neighborhood = request.args.get('neighborhood')
    layout = request.args.get('layout')
    bathrooms = request.args.get('bathrooms')
    square_footage = request.args.get('square_footage')

    predicted_price = regression.run([{
        'neighborhood': neighborhood,
        'layout': layout, 
        'bathrooms': bathrooms,
        'square_footage': int(square_footage)
    }])

    return jsonify(predicted_price[0][0])
