Compare commits
No commits in common. "dev" and "flask-ML" have entirely different histories.
2
main.py
2
main.py
@ -2,7 +2,6 @@ from flask import Flask, request, Response, json
|
|||||||
from cat_detection import detect_cat
|
from cat_detection import detect_cat
|
||||||
from language_label_mapper import translate
|
from language_label_mapper import translate
|
||||||
from validator import validate
|
from validator import validate
|
||||||
from flask_cors import CORS
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Flask Rest API application to cat recognition.
|
Flask Rest API application to cat recognition.
|
||||||
@ -38,7 +37,6 @@ from flask_cors import CORS
|
|||||||
# Define flask app
|
# Define flask app
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
app.secret_key = 'secret_key'
|
app.secret_key = 'secret_key'
|
||||||
CORS(app)
|
|
||||||
|
|
||||||
# Available cats
|
# Available cats
|
||||||
list_of_labels = [
|
list_of_labels = [
|
||||||
|
@ -6,4 +6,3 @@ jproperties==2.1.1
|
|||||||
tensorflow==2.15.0
|
tensorflow==2.15.0
|
||||||
werkzeug==3.0.1
|
werkzeug==3.0.1
|
||||||
pytest==7.4.4
|
pytest==7.4.4
|
||||||
flask-cors==4.0.0
|
|
Loading…
Reference in New Issue
Block a user