Spaces:
Sleeping
Sleeping
update openai message
Browse files
app.py
CHANGED
|
@@ -101,6 +101,11 @@ def chatgpt_openai(height="", gender="", bmi_class_model1="", age=""):
|
|
| 101 |
os.environ["OPENAI_API_KEY"] = os.getenv("OPENAI_API_KEY")
|
| 102 |
content = f"""I have a person {gender} who is {height} and classified as {bmi_class_model1}.
|
| 103 |
Can you suggest a reasonable range of BMI values that typically represent people who are {bmi_class_model1}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
Output JSON in this format:
|
| 105 |
{{
|
| 106 |
"bmi_range": {{
|
|
|
|
| 101 |
os.environ["OPENAI_API_KEY"] = os.getenv("OPENAI_API_KEY")
|
| 102 |
content = f"""I have a person {gender} who is {height} and classified as {bmi_class_model1}.
|
| 103 |
Can you suggest a reasonable range of BMI values that typically represent people who are {bmi_class_model1}.
|
| 104 |
+
|
| 105 |
+
Do not include any explanations, only provide a RFC8259 compliant JSON response following this format without deviation.
|
| 106 |
+
|
| 107 |
+
Do not output something that begins with "```json". please give json in define format.
|
| 108 |
+
|
| 109 |
Output JSON in this format:
|
| 110 |
{{
|
| 111 |
"bmi_range": {{
|