debisoft commited on
Commit
c9967e3
·
1 Parent(s): f656077
Files changed (1) hide show
  1. app.py +2 -2
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 recommend(name, body_profile_type):
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=recommend, inputs=["text", "text"], outputs="text")
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()