Spaces:
Sleeping
Sleeping
jatin-tec commited on
Commit ·
1777970
1
Parent(s): ba255b7
testing
Browse files
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
|
| 79 |
-
output['gender'] = json
|
| 80 |
-
output['skin_type'] = json
|
| 81 |
-
output['allergies'] = json
|
| 82 |
-
output['diet'] = json
|
| 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=[
|