DSatishchandra commited on
Commit
e6a5127
·
verified ·
1 Parent(s): a7abf85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -11,7 +11,7 @@ app.secret_key = 'sSSjyhInIsUohKpG8sHzty2q' # Replace with a secure key
11
 
12
  @app.route("/")
13
  def home():
14
- return render_template("index.html")
15
 
16
  @app.route("/signup", methods=["GET", "POST"])
17
  def signup():
@@ -264,4 +264,6 @@ def checkout():
264
  return jsonify({"success": False, "error": str(e)})
265
 
266
  if __name__ == "__main__":
267
- app.run(host="0.0.0.0", port=8000)
 
 
 
11
 
12
  @app.route("/")
13
  def home():
14
+ return "Welcome to BiryaniHub!"
15
 
16
  @app.route("/signup", methods=["GET", "POST"])
17
  def signup():
 
264
  return jsonify({"success": False, "error": str(e)})
265
 
266
  if __name__ == "__main__":
267
+ # Use the PORT environment variable provided by Hugging Face
268
+ port = int(os.environ.get("PORT", 7860)) # Default to 7860
269
+ app.run(host="0.0.0.0", port=port, debug=False)