debisoft commited on
Commit
f656077
·
1 Parent(s): 6e54bcf

Change interface

Browse files
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 greet(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=greet, 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 recommend(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=recommend, inputs=["text", "text"], outputs="text")
308
  iface.launch()