Spaces:
Build error
Build error
Update app.py
Browse files119 unmodified lines120121122123124125126127128129130131132119 unmodified lines# # Second prompt: Health benefits and tipshealth_benefits_prompt = f"Provide the health benefits and considerations for {prediction}. Additionally, include practical tips for making {prediction} healthier. Keep the response focused on these two aspects only."# health_benefits_prompt = f"Provide detailed information about {prediction}, including its origin, common uses, cultural significance, and any interesting facts. Keep the response informative and well-structured."Information = call_llm(llm_client, health_benefits_prompt)return {"predicted_label": prediction,"nutrition_info": nutrition_info,"Information": Information}except Exception as e:return JSONResponse(119 unmodified lines120121122123124125126127128129130131132133134135119 unmodified lines# # Second prompt: Health benefits and tipshealth_benefits_prompt = f"Provide the health benefits and considerations for {prediction}. Additionally, include practical tips for making {prediction} healthier. Keep the response focused on these two aspects only."# health_benefits_prompt = f"Provide detailed information about {prediction}, including its origin, common uses, cultural significance, and any interesting facts. Keep the response informative and well-structured."Information = call_llm(llm_client, health_benefits_prompt)recipes_prompt=f"Tell me about the two most famous recipes for {prediction}. Include the ingredients only."recipes_info=call_llm(llm_client, recipes_prompt)return {"Predicted_label": prediction,"Nutrition_info": nutrition_info,"Information": Information,"Recipes":recipes_info}except Exception as e:return JSONResponse(
app.py+7-4