athv commited on
Commit
92e165d
·
verified ·
1 Parent(s): 9181a5f

Update server.py

Browse files

allowing external connections

Files changed (1) hide show
  1. server.py +2 -2
server.py CHANGED
@@ -81,5 +81,5 @@ def optimize_code():
81
 
82
  # --- 4. Run the Server ---
83
  if __name__ == '__main__':
84
- print("Starting Flask server on http://127.0.0.1:5000")
85
- app.run(debug=True, port=5000)
 
81
 
82
  # --- 4. Run the Server ---
83
  if __name__ == '__main__':
84
+ # Listen on 0.0.0.0 to allow external connections
85
+ app.run(host='0.0.0.0', port=7860)