debisoft commited on
Commit
2bfe4e1
·
1 Parent(s): cace5ff
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,7 +18,7 @@ from sklearn.preprocessing import OneHotEncoder
18
  def greet_o(name, str2):
19
  return "Hello " + name + "!!" + " str2=" + str2
20
 
21
- def greet(name, body_profile_num):
22
  user_df = {}
23
 
24
  # Get user input for numerical columns
@@ -28,7 +28,7 @@ def greet(name, body_profile_num):
28
  user_df['height'] = 60.0
29
  user_df['smokes'] = 1.0
30
  user_df['new_languages'] = 2.0
31
- user_df['body_profile'] = float(body_profile_num)
32
  user_df['education_level'] = 4.0
33
  user_df['dropped_out'] = 0.0
34
  user_df['bio'] = 'I am a foodie and traveller. But sometimes like to sit alone in a corner and read a good fiction.'
 
18
  def greet_o(name, str2):
19
  return "Hello " + name + "!!" + " str2=" + str2
20
 
21
+ def greet(name, body_profile_type):
22
  user_df = {}
23
 
24
  # Get user input for numerical columns
 
28
  user_df['height'] = 60.0
29
  user_df['smokes'] = 1.0
30
  user_df['new_languages'] = 2.0
31
+ user_df['body_profile'] = float(body_profile_type)
32
  user_df['education_level'] = 4.0
33
  user_df['dropped_out'] = 0.0
34
  user_df['bio'] = 'I am a foodie and traveller. But sometimes like to sit alone in a corner and read a good fiction.'