Spaces:
Sleeping
Sleeping
Update api/ingredients_analysis.py
Browse files
api/ingredients_analysis.py
CHANGED
@@ -389,7 +389,8 @@ async def async_process_ingredients(ingredients_list, client, embeddings_titles_
|
|
389 |
refs.extend(refs_ingredient)
|
390 |
|
391 |
return refs, all_ingredient_analysis
|
392 |
-
|
|
|
393 |
async def get_ingredient_analysis(payload):
|
394 |
print(f"DEBUG - payload obtained {payload}")
|
395 |
product_info_from_db = payload.get('product_info_from_db')
|
|
|
389 |
refs.extend(refs_ingredient)
|
390 |
|
391 |
return refs, all_ingredient_analysis
|
392 |
+
|
393 |
+
@app.post('/processing_level-ingredient-analysis')
|
394 |
async def get_ingredient_analysis(payload):
|
395 |
print(f"DEBUG - payload obtained {payload}")
|
396 |
product_info_from_db = payload.get('product_info_from_db')
|