Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def product():
"""
product=request.args['product']
return redirect("/trend/{}_OverAll".format(product))

@app.route('/main_product', methods=['GET','POST'])
def main_product():
if request.method == 'POST':
Expand All @@ -41,9 +42,11 @@ def main_product():
return redirect("trend/{}_OverAll".format(product_name))
return redirect("/wearedoing/{}".format(product_name))
return render_template("product.html")

@app.route('/profile')
def fc():
return render_template('user_profile.html')

@app.route('/wearedoing/<productname>')
def wearedoingit(productname):
#doing the naive bayes thing here
Expand Down