Skip to content

Commit

Permalink
Merge pull request #10 from mostafa-elhaiany/backend
Browse files Browse the repository at this point in the history
cors issues
  • Loading branch information
mostafa-elhaiany committed Oct 29, 2023
2 parents c8444c7 + 00df3c1 commit 3e537ef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Backend/FaceRec/image2enneagramm.py
Expand Up @@ -20,7 +20,7 @@ def image2enneagramm(base64_string):
return neigh.predict(features.reshape(1,-1))

def getDataVector():
with open('FacialRecognition/data.csv', 'r') as datafile:
with open('FaceRec/data.csv', 'r') as datafile:
datareader = csv.reader(datafile)
datafile.seek(0)
data = []
Expand Down
5 changes: 4 additions & 1 deletion Backend/application.py
@@ -1,15 +1,18 @@
from flask import Flask

from flask_cors import CORS
#API pages
from API.Users import users_page
from API.Enneagrams import enneagrams_page
from API.Match import matches_page


app = Flask(__name__)
app.register_blueprint(users_page)
app.register_blueprint(enneagrams_page)
app.register_blueprint(matches_page)

CORS(app)

@app.route("/")
def home():
return "Hello, world!"
Expand Down
1 change: 1 addition & 0 deletions Backend/requirments.txt
@@ -1,6 +1,7 @@
Flask
Pillow
opencv-python
Flask-Cors
scikit-learn
pymongo
torch
Expand Down

0 comments on commit 3e537ef

Please sign in to comment.