Fix port conflict: Change Flask app port from 5001 to 5002
- Updated main.py to use port 5002 instead of 5001 - Resolves 'Address already in use' error - Ensures smooth API startup for testing - Web interface now available at http://localhost:5002
This commit is contained in:
@@ -361,4 +361,4 @@ if __name__ == '__main__':
|
|||||||
print(f"Model loaded: {detector.model is not None}")
|
print(f"Model loaded: {detector.model is not None}")
|
||||||
print(f"Hardcoded test image: {HARDCODED_IMAGE_PATH}")
|
print(f"Hardcoded test image: {HARDCODED_IMAGE_PATH}")
|
||||||
|
|
||||||
app.run(host='0.0.0.0', port=5001, debug=True)
|
app.run(host='0.0.0.0', port=5002, debug=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user