This commit is contained in:
Michael 2024-01-21 11:27:01 +01:00
parent bcf0d04de6
commit 7fe54f35d7
No known key found for this signature in database
GPG Key ID: 066ED7D431960C9B
2 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,7 @@ from flask import Flask, request, Response, json
from cat_detection import detect_cat
from language_label_mapper import translate
from validator import validate
from flask_cors import CORS
"""
Flask Rest API application to cat recognition.
@ -37,6 +38,7 @@ from validator import validate
# Define flask app
app = Flask(__name__)
app.secret_key = 'secret_key'
CORS(app)
# Available cats
list_of_labels = [

View File

@ -5,4 +5,5 @@ keras==2.15.0
jproperties==2.1.1
tensorflow==2.15.0
werkzeug==3.0.1
pytest==7.4.4
pytest==7.4.4
flask-cors==4.0.0