WaiYanLynn commited on
Commit
e00c7af
1 Parent(s): ea95583

Update src/controllers/predict_controller.py

Browse files
src/controllers/predict_controller.py CHANGED
@@ -17,9 +17,6 @@ ALLOWED_EXTENSIONS = {"png", "jpg", "jpeg"}
17
  def allowed_file(filename):
18
  return "." in filename and filename.rsplit(".", 1)[1].lower() in ALLOWED_EXTENSIONS
19
 
20
- @predicts.route('/')
21
- def home():
22
- return 'ok',200
23
 
24
  @predicts.route("/", methods=["POST"], strict_slashes=False)
25
  def upload_file():
 
17
  def allowed_file(filename):
18
  return "." in filename and filename.rsplit(".", 1)[1].lower() in ALLOWED_EXTENSIONS
19
 
 
 
 
20
 
21
  @predicts.route("/", methods=["POST"], strict_slashes=False)
22
  def upload_file():