Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,7 @@ from flask import send_from_directory
|
|
7 |
#from flask_cors import CORS
|
8 |
from functools import wraps
|
9 |
|
|
|
10 |
app = Flask(__name__)
|
11 |
#CORS(app)
|
12 |
|
@@ -49,4 +50,9 @@ def predict():
|
|
49 |
|
50 |
|
51 |
if __name__ == "__main__":
|
52 |
-
|
|
|
|
|
|
|
|
|
|
|
|
7 |
#from flask_cors import CORS
|
8 |
from functools import wraps
|
9 |
|
10 |
+
|
11 |
app = Flask(__name__)
|
12 |
#CORS(app)
|
13 |
|
|
|
50 |
|
51 |
|
52 |
if __name__ == "__main__":
|
53 |
+
for port in range(100, 5000):
|
54 |
+
try:
|
55 |
+
app.run(host='0.0.0.0', port=port)
|
56 |
+
break
|
57 |
+
except socket.error:
|
58 |
+
pass
|