lydiazyang commited on
Commit
a4c18df
·
1 Parent(s): abd6949

updated prompts for better responses

Browse files
Files changed (1) hide show
  1. index.py +2 -2
index.py CHANGED
@@ -124,10 +124,10 @@ def displayRecipes(ingredientsList):
124
  items = []
125
  #now we are gonna send the ingredient list to ask gpt
126
  prompt = f"I have following Ingredients :{','.join(ingredientsList)}. What can I make with these \
127
- Ingredients? Give me A list of detailed recipes with measurements containing these ingredients with Nutrition Facts per 100g based on the widely accepted nutritional value of each of these ingredients. Rank the list from \
128
  highest nutritional value to lowest. Give me results in \
129
  following format and do not deviate from this format:\
130
- ['Recipe Title', 'nutritional facts per serving and content of recipe']."
131
  #prompt = f"You are going to act as a nutritional expert who has a lot of knowledge about food. I have the following ingredients: {','.join(ingredientsList)}. What can I make with these ingredients? Give me a list of names of recipes, maximum five."
132
  LLMResult = askGPT(prompt)
133
  lystOfRecipes = LLMResult.split('\n\n')
 
124
  items = []
125
  #now we are gonna send the ingredient list to ask gpt
126
  prompt = f"I have following Ingredients :{','.join(ingredientsList)}. What can I make with these \
127
+ Ingredients? Give me A list of detailed recipes with measurements containing these ingredients with Nutrition Facts (calories, grams of sugar, grams of protein, grams of fats, grams of carbohydrates) per serving based on the widely accepted nutritional value of each of these ingredients. Rank the list from \
128
  highest nutritional value to lowest. Give me results in \
129
  following format and do not deviate from this format:\
130
+ ['Recipe Title', 'Calories per serving']."
131
  #prompt = f"You are going to act as a nutritional expert who has a lot of knowledge about food. I have the following ingredients: {','.join(ingredientsList)}. What can I make with these ingredients? Give me a list of names of recipes, maximum five."
132
  LLMResult = askGPT(prompt)
133
  lystOfRecipes = LLMResult.split('\n\n')