Spaces:
Build error
Build error
Update app.py
Browse files117 unmodified lines118119120121122123124125126127128129117 unmodified lines# nutrition_info = call_llm(llm_client, nutrition_prompt)# # 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_and_tips = call_llm(llm_client, health_benefits_prompt)return {"predicted_label": prediction,"health_benefits_and_tips": health_benefits_and_tips,# "nutrition_info": nutrition_info}except Exception as e:117 unmodified lines118119120121122123124125126127128129130131117 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_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,"Information": Information,# "nutrition_info": nutrition_info}except Exception as e:
app.py+5-3