bokharim24 commited on
Commit
7349477
·
2 Parent(s): 8ada8ab a4c18df

Merge branch 'main' of https://huggingface.co/threeidots/SpeakClear

Browse files
Files changed (1) hide show
  1. index.py +2 -2
index.py CHANGED
@@ -135,10 +135,10 @@ def displayRecipes(ingredientsList):
135
  items = []
136
  #now we are gonna send the ingredient list to ask gpt
137
  prompt = f"I have following Ingredients :{','.join(ingredientsList)}. What can I make with these \
138
- 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 \
139
  highest nutritional value to lowest. Give me results in \
140
  following format and do not deviate from this format:\
141
- ['Recipe Title', 'nutritional facts per serving and content of recipe']."
142
  #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."
143
  LLMResult = askGPT(prompt)
144
  lystOfRecipes = LLMResult.split('\n\n')
 
135
  items = []
136
  #now we are gonna send the ingredient list to ask gpt
137
  prompt = f"I have following Ingredients :{','.join(ingredientsList)}. What can I make with these \
138
+ 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 \
139
  highest nutritional value to lowest. Give me results in \
140
  following format and do not deviate from this format:\
141
+ ['Recipe Title', 'Calories per serving']."
142
  #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."
143
  LLMResult = askGPT(prompt)
144
  lystOfRecipes = LLMResult.split('\n\n')