Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
| 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 |
-
|
|
|
|
|
|
|
|
|
| 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)
|