More comments!
Browse files
app.py
CHANGED
|
@@ -13,12 +13,13 @@ from sklearn.metrics.pairwise import cosine_similarity
|
|
| 13 |
from sklearn.preprocessing import LabelEncoder
|
| 14 |
from sklearn.preprocessing import OneHotEncoder
|
| 15 |
|
| 16 |
-
#
|
|
|
|
| 17 |
# Testing: curl -X POST https://debisoft-junction.hf.space/api/predict -H 'Content-Type: application/json' -d '{"data": [<name>,<body_profile_type>]}
|
| 18 |
-
# body_profile_type => [0-4]
|
| 19 |
# Eg. curl -X POST https://debisoft-junction.hf.space/api/predict -H 'Content-Type: application/json' -d '{"data": ["David",4]}
|
| 20 |
-
|
| 21 |
# Adapted from https://www.geeksforgeeks.org/predict-tinder-matches-with-machine-learning/
|
|
|
|
| 22 |
|
| 23 |
def greet(name, body_profile_type):
|
| 24 |
user_df = {}
|
|
|
|
| 13 |
from sklearn.preprocessing import LabelEncoder
|
| 14 |
from sklearn.preprocessing import OneHotEncoder
|
| 15 |
|
| 16 |
+
# BiteBuddies AI/ML Stack
|
| 17 |
+
# Tinder-style Recommender System/Collaborative Filtering
|
| 18 |
# Testing: curl -X POST https://debisoft-junction.hf.space/api/predict -H 'Content-Type: application/json' -d '{"data": [<name>,<body_profile_type>]}
|
| 19 |
+
# body_profile_type => [0-4]
|
| 20 |
# Eg. curl -X POST https://debisoft-junction.hf.space/api/predict -H 'Content-Type: application/json' -d '{"data": ["David",4]}
|
|
|
|
| 21 |
# Adapted from https://www.geeksforgeeks.org/predict-tinder-matches-with-machine-learning/
|
| 22 |
+
# TODO: Implement MBTI features
|
| 23 |
|
| 24 |
def greet(name, body_profile_type):
|
| 25 |
user_df = {}
|