Spaces:
Build error
Build error
Update app.py
Browse files117 unmodified lines118119120121122121122123124125126127126128129130131117 unmodified lines # nutrition_info = call_llm(llm_client, nutrition_prompt) # # Second prompt: Health benefits and tips health_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_and_tips = call_llm(llm_client, health_benefits_prompt) # health_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, "health_benefits_and_tips": health_benefits_and_tips, "Information": Information, # "nutrition_info": nutrition_info } except Exception as e:app.py+5-3