predict
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ from sklearn.preprocessing import OneHotEncoder
|
|
21 |
# Adapted from https://www.geeksforgeeks.org/predict-tinder-matches-with-machine-learning/
|
22 |
# TODO: Implement MBTI features
|
23 |
|
24 |
-
def
|
25 |
user_df = {}
|
26 |
|
27 |
# Get user input for numerical columns
|
@@ -304,5 +304,5 @@ def recommendOne(user_df, num_recommendations=1):
|
|
304 |
|
305 |
# Setup complete!
|
306 |
|
307 |
-
iface = gr.Interface(fn=
|
308 |
iface.launch()
|
|
|
21 |
# Adapted from https://www.geeksforgeeks.org/predict-tinder-matches-with-machine-learning/
|
22 |
# TODO: Implement MBTI features
|
23 |
|
24 |
+
def predict(name, body_profile_type):
|
25 |
user_df = {}
|
26 |
|
27 |
# Get user input for numerical columns
|
|
|
304 |
|
305 |
# Setup complete!
|
306 |
|
307 |
+
iface = gr.Interface(fn=predict, inputs=["text", "text"], outputs="text")
|
308 |
iface.launch()
|