Abdullah6395 commited on
Commit
99e94b9
·
verified ·
1 Parent(s): d41d76f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -97,7 +97,7 @@ def sign_up():
97
  with open("products.json") as f:
98
  data=json.load(f)
99
  f.close()
100
- return redirect(url_for("products.html",products=data))
101
  if request.method=="GET":
102
  return render_template("Signup.html")
103
  else:
@@ -209,7 +209,7 @@ def predict():
209
  else:
210
  return render_template("products.html")
211
  if __name__=="__main__":
212
- os.system("gunicorn --limit-request-line 8190 -w 2 -b 0.0.0.0:7860 app:app")
213
 
214
 
215
 
 
97
  with open("products.json") as f:
98
  data=json.load(f)
99
  f.close()
100
+ return redirect(url_for("products"))
101
  if request.method=="GET":
102
  return render_template("Signup.html")
103
  else:
 
209
  else:
210
  return render_template("products.html")
211
  if __name__=="__main__":
212
+ app.run(debug=True)
213
 
214
 
215