bridging the image classifying model and ingredients fact recognition model.
Browse files
index.py
CHANGED
|
@@ -86,7 +86,9 @@ def displayRecipes(ingredientsList):
|
|
| 86 |
st.write(item["content"])
|
| 87 |
#now we are gonna send the ingredient list to ask gpt
|
| 88 |
prompt = f"I have following Ingredients :{','.join(ingredientsList)}. What can I make with these \
|
| 89 |
-
Ingredients? give me possible recipe with Nutrition Facts per 100g.
|
|
|
|
|
|
|
| 90 |
LLMResult = askGPT(prompt)
|
| 91 |
print(LLMResult)
|
| 92 |
|
|
|
|
| 86 |
st.write(item["content"])
|
| 87 |
#now we are gonna send the ingredient list to ask gpt
|
| 88 |
prompt = f"I have following Ingredients :{','.join(ingredientsList)}. What can I make with these \
|
| 89 |
+
Ingredients? give me possible recipe with Nutrition Facts per 100g. Give me results in \
|
| 90 |
+
python list in the following format:\
|
| 91 |
+
'title': 'Recipe title', 'content': 'recipe and nutritional facts per 100g'"
|
| 92 |
LLMResult = askGPT(prompt)
|
| 93 |
print(LLMResult)
|
| 94 |
|