AronWolverine commited on
Commit
1325510
·
1 Parent(s): 173bba6

commit flask 2

Browse files
Files changed (3) hide show
  1. app.py +1 -1
  2. dockerfile +1 -1
  3. requirements.txt +2 -1
app.py CHANGED
@@ -12,7 +12,7 @@ from flask import Flask , request, render_template
12
 
13
  app = Flask(__name__)
14
  basepath = os.path.dirname(__file__)
15
- modelpath = os.path.join(basepath,'uploads',"densenet_ship.h5")
16
  model = load_model(modelpath)
17
  @app.route('/')
18
  def index():
 
12
 
13
  app = Flask(__name__)
14
  basepath = os.path.dirname(__file__)
15
+ modelpath = os.path.join(basepath,'uploads',"best1den.keras")
16
  model = load_model(modelpath)
17
  @app.route('/')
18
  def index():
dockerfile CHANGED
@@ -15,4 +15,4 @@ EXPOSE 7860
15
 
16
 
17
  # Command to run the Flask application
18
- CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app"]
 
15
 
16
 
17
  # Command to run the Flask application
18
+ CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]
requirements.txt CHANGED
@@ -3,4 +3,5 @@ tensorflow
3
  keras
4
  Keras-Preprocessing
5
  gunicorn
6
- flask
 
 
3
  keras
4
  Keras-Preprocessing
5
  gunicorn
6
+ flask
7
+ pillow