jatin-tec commited on
Commit
1777970
1 Parent(s): ba255b7
Files changed (1) hide show
  1. index.py +5 -5
index.py CHANGED
@@ -75,11 +75,11 @@ def recommendation(response):
75
 
76
  output = {landmarks[i].split(
77
  '.')[0]: f"level{prediction[i]}" for i in range(len(landmarks))}
78
- output['age'] = json.get('age')
79
- output['gender'] = json.get('gender')
80
- output['skin_type'] = json.get('skin_type')
81
- output['allergies'] = json.get('allergies')
82
- output['diet'] = json.get('diet')
83
  completion = openai.ChatCompletion.create(
84
  model="gpt-3.5-turbo",
85
  messages=[
 
75
 
76
  output = {landmarks[i].split(
77
  '.')[0]: f"level{prediction[i]}" for i in range(len(landmarks))}
78
+ output['age'] = json['age']
79
+ output['gender'] = json['gender']
80
+ output['skin_type'] = json['skin_type']
81
+ output['allergies'] = json['allergies']
82
+ output['diet'] = json['diet']
83
  completion = openai.ChatCompletion.create(
84
  model="gpt-3.5-turbo",
85
  messages=[