Added more comments
Browse files
app.py
CHANGED
|
@@ -14,6 +14,11 @@ from sklearn.preprocessing import LabelEncoder
|
|
| 14 |
from sklearn.preprocessing import OneHotEncoder
|
| 15 |
|
| 16 |
# TODO: Implement MBTI features
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
def greet(name, body_profile_type):
|
| 19 |
user_df = {}
|
|
|
|
| 14 |
from sklearn.preprocessing import OneHotEncoder
|
| 15 |
|
| 16 |
# TODO: Implement MBTI features
|
| 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 = {}
|