maahi2412 commited on
Commit
8488d03
·
verified ·
1 Parent(s): f9962bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -460,6 +460,5 @@ def summarize_document():
460
  return jsonify({"model_used": model, "summary": summary})
461
 
462
  if __name__ == '__main__':
463
- # For local development, use Flask's built-in server
464
- port = int(os.environ.get("PORT", 5000)) # Use PORT env var if set (common in containers)
465
- app.run(debug=False, host='0.0.0.0', port=port) # debug=False for production-like behavior
 
460
  return jsonify({"model_used": model, "summary": summary})
461
 
462
  if __name__ == '__main__':
463
+ port = int(os.environ.get("PORT", 5000))
464
+ app.run(debug=False, host='0.0.0.0', port=port)