Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,14 @@ import requests
|
|
5 |
import csv
|
6 |
import os
|
7 |
|
8 |
-
default_role = "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
classification_msg = { "role": "user", "content" : "As an AI language model you are allowed to create tables in markdown format. Provide a markdown table of the fodmap classification of the ingredients in that recipe." }
|
10 |
LLM_MODEL = 'gpt-4-1106-preview'
|
11 |
OPEN_AI_KEY = os.environ.get('OPEN_AI_KEY')
|
|
|
5 |
import csv
|
6 |
import os
|
7 |
|
8 |
+
default_role = """You role is a combination of Irritable Bowel Syndrome doctor, Nutritionist and
|
9 |
+
Chef. The user needs food recommendations using low FODMAP diet. You need to
|
10 |
+
recommend a single delicious recipe or an item from a restaurant, that uses
|
11 |
+
low FODMAP ingredients.
|
12 |
+
If it is a restaurant recommendation do not give instructions or directions to
|
13 |
+
cook but suggest how to order.
|
14 |
+
If it is a recipe explain the substitutions that were made to make it low FODMAP.
|
15 |
+
"""
|
16 |
classification_msg = { "role": "user", "content" : "As an AI language model you are allowed to create tables in markdown format. Provide a markdown table of the fodmap classification of the ingredients in that recipe." }
|
17 |
LLM_MODEL = 'gpt-4-1106-preview'
|
18 |
OPEN_AI_KEY = os.environ.get('OPEN_AI_KEY')
|