shivanis14
commited on
Commit
•
79eb04b
1
Parent(s):
2fe2368
Update app.py
Browse files
app.py
CHANGED
@@ -399,7 +399,8 @@ def analyze_claims(claims, ingredients, product_name, assistant_id):
|
|
399 |
{
|
400 |
"role": "user",
|
401 |
"content": "A food product contains the following ingredients: " + ', '.join(ingredients) + ". Please provide a balanced analysis of each ingredient, highlighting both positive (if any) and negative effects (if any). Do not assume excessive intake. The output must be in JSON format: {<ingredient_name>: <information from the document about the positive and negative effects of the ingredient>}. If information about an ingredient is not found in the documents, the value for that ingredient must start with '(NOT FOUND IN DOCUMENT)' followed by the LLM's response based on its own knowledge."
|
402 |
-
|
|
|
403 |
)
|
404 |
|
405 |
run = client.beta.threads.runs.create_and_poll(
|
|
|
399 |
{
|
400 |
"role": "user",
|
401 |
"content": "A food product contains the following ingredients: " + ', '.join(ingredients) + ". Please provide a balanced analysis of each ingredient, highlighting both positive (if any) and negative effects (if any). Do not assume excessive intake. The output must be in JSON format: {<ingredient_name>: <information from the document about the positive and negative effects of the ingredient>}. If information about an ingredient is not found in the documents, the value for that ingredient must start with '(NOT FOUND IN DOCUMENT)' followed by the LLM's response based on its own knowledge."
|
402 |
+
}
|
403 |
+
]
|
404 |
)
|
405 |
|
406 |
run = client.beta.threads.runs.create_and_poll(
|