Looping complete. Finally! "-"

#6
by Rjshri - opened
Files changed (1) hide show
  1. app.py +32 -32
app.py CHANGED
@@ -13,68 +13,68 @@ def food_endpoint(breed: str):
13
  can be found [here](https://huggingface.co/google/flan-t5-small).
14
  """
15
  if breed == 'Australian Shepherd':
16
- return "If your Aussie is very active, consider choosing an active or working breed formula. These foods will be higher in protein to support lean muscle mass and will contain higher fat and calorie content to keep up with their energy. Protein should come from high-quality animal sources to maximize digestibility and to provide the essential amino acids your dog needs. Moderate-to-high fat content, Nnutritious and digestible carbohydrates, Whole grains, starchy vegetables, and fresh fruits."
17
  elif breed == 'Basset Hound':
18
- return "Basset Hounds are prone to obesity so select a dog food that is formulated to meet their specific energy requirements without overloading them with excessive calories. Basset Hounds are susceptible to joint problems, including hip dysplasia and arthritis, so the food you choose should contain ingredients like glucosamine and chondroitin. This dog breed may also be prone to digestive issues, including bloating and gas so choose a dog food that contains easily digestible ingredients, such as high-quality proteins and fibers."
19
  elif breed == 'Bernedoodles':
20
- return "Look for commercially available dog foods that are labeled as complete and balanced to ensure they meet all the essential nutrients your Bernedoodle needs. Choose products with real meat listed as the first ingredient. Dog foods with a good source of animal-based protein, is crucial for a Bernedoodles active lifestyle. Look for foods with moderate levels of healthy fats, such as omega-3 and omega-6 fatty acids. Depending on whether your Bernedoodle is a puppy, adult, or senior, their nutritional needs will vary. Ensure you choose a formula suitable for their life stage."
21
  elif breed == 'Bichon Frise':
22
- return "This breed is prone to allergies so, when choosing a dog food look for recipes with limited, wholesome ingredients and novel protein such as fish, venison, duck or rabbit. Bichons, like many small breeds, are prone to urolithiasis, stones in the urinary tract, so keeping your dog well-hydrated is important to help prevent and control it – make sure your dog has access to bowls of fresh water."
23
  elif breed == 'Boston Terrier':
24
- return "Boston Terriers are prone to joint problems including patella luxation, so choose a food which contains ingredients such as glucosamine and chondroitin which can help support joint health and mobility. Opt for a dog food that lists high-quality animal-based proteins as the main ingredients, such as chicken, turkey, or fish. These proteins provide essential amino acids for muscle development and maintenance. Boston Terriers may have food sensitivities or allergies, so be mindful of potential allergens in their food."
25
  elif breed == 'Boxer':
26
- return "Boxers are an active breed and require a diet with a good source of protein. Look for dog foods with real meat as the first ingredient, such as chicken, beef, or fish. Avoid products that rely heavily on plant-based proteins. Boxers can be prone to weight gain, so consider a formula that supports a healthy weight. While some Boxers may do well on grain-free diets, others may experience heart issues due to a lack of taurine."
27
  elif breed == 'Boykin Spaniel':
28
- return "Boykin Spaniels are active dogs, so it’s important to select a dog food that is formulated to meet their specific energy requirements without overloading them with excessive calories. As always, ensure that the dog food you choose provides a balanced mix of proteins, fats, carbohydrates, vitamins, and minerals. Opt for a dog food that lists high-quality animal-based proteins as the main ingredients, such as chicken, beef, or fish. These proteins provide essential amino acids for muscle development and maintenance."
29
  elif breed == 'Cairn Terrier':
30
- return "To avoid your Cairn Terrier gaining weight, it’s important to control their calorie intake. Opt for a dog food that is formulated to meet the energy needs of a moderately active dog, and be mindful of portion sizes. Look for dog food that includes sources of omega-3 fatty acids, such as fish oil or flaxseed. These fatty acids can promote healthy skin, a shiny coat, and support overall well-being."
31
  elif breed == 'Cane Corso':
32
- return "Cane Corsos are high-energy dogs, however due to their size, they do not zoom around as much as other working breeds so can be prone to obesity. Choose a dog food that is formulated specifically for large breed dogs but practice portion control to ensure you do not overload them with excessive calories. Aim for a dog food that contains around 25-30% protein content, moderate fat content of around 10-15% and whole grains or vegetables as a carbohydrate source."
33
  elif breed == 'Catahoula Leopards':
34
- return "Catahoula Leopards benefit from foods made specifically for medium-large breeds with high protein levels for energy and added taurine and vitamin A to protect eye health and vision. A diet rich in high-quality animal protein sources such as chicken, beef, or fish, is vital so look for a dog food with named meat protein sources at the top of the ingredient list. As with many larger breeds, Catahoula Leopards are prone to skeletal issues such as hip dysplasia. It is, therefore, crucial to choose a dog food that has appropriate and balanced levels of calcium and phosphorus to support healthy bone growth."
35
  elif breed == 'Chihuahua':
36
- return "Chihuahua puppies, adults and seniors each have different nutritional needs for optimal long-term health. Which means, A dog food designed for an adult chihuahua may contain too little calcium for a growing puppy or too many calories for a less active senior. And there are other significant differences like chihuahua puppy needs 1.0% arginine (an essential amino acid while an adult requires less, just 0.51% of the same nutrient. In comparison, A senior Chihuahua benefits from more protein and fewer calories. "
37
  elif breed == 'Corgi':
38
- return " When choosing a dog food for your Corgi, look for one which contains real animal-based protein sources as the main ingredients. Choose a kibble that is appropriate for their mouth size as this helps with chewing and digestion. Control the calorie intake and be mindful of portion sizes, include food with glucosamine and chondroitin. Select a dog food that is easily digestible and contains omega-3 fatty acids, such as fish oil or flaxseed."
39
  elif breed == 'Dachshund':
40
- return "Dachshund puppies, adults and seniors each have different nutritional needs. A dog food designed for an adult may contain too little calcium for a growing dachshund puppy or too little protein and too many calories for a less active senior. A growing dachshund puppy needs 0.71% isoleucine (one of 12 essential amino acids) while an adult requires just 0.38% of the same nutrient. The health of a senior dachshund can be enhanced by a dog food that contains 50% more protein than a younger animal."
41
  elif breed == 'Doberman Pinscher':
42
- return "Doberman Pinschers are muscular dogs but prone to genetic health issues such as hip dysplasia. So the food you choose should contain ingredients like glucosamine and chondroitin. Choose a dog food that contains easily digestible ingredients, such as high-quality proteins and fibers. Avoid foods with excessive fillers or artificial additives that can contribute to digestive upset. Opt for a dog food that lists high-quality animal-based proteins as the main ingredients, such as chicken, turkey, or fish."
43
  elif breed == 'French Bulldog':
44
- return "Look for dog foods with a high-quality source of protein as the main ingredient, such as chicken, beef, or fish. Avoid dog foods that contain excessive fillers like corn, soy, and wheat. French Bulldogs are prone to obesity, so choose dog food with a moderate fat content to help manage their weight. Look for dog food with added omega-3 fatty acids, which can help maintain healthy skin and a shiny coat, as well as support joint health. Choose a dog food with small kibble size to prevent choking and make eating easier."
45
  elif breed == 'German Shepherd':
46
- return "Look for dog foods with real meat as the primary ingredient, such as chicken, beef, or fish. This breed is prone to hip and joint issues, so a dog food with added glucosamine and chondroitin can help support their joint health. Look for dog foods that contain omega-3 fatty acids, such as those found in fish oil. Avoid dog foods that contain excessive fillers like corn, soy, and wheat. German Shepherds have different nutritional needs as puppies, adults, and seniors. Choose a dog food tailored to your dog's life stage."
47
  elif breed == 'Golden Retriever':
48
- return "When choosing food for your golden retriever, it’s super important to consider your dog’s age. Even though adult goldens benefit from eating better quality brands, choosing the right food for your puppy can be absolutely critical. Golden retriever puppies have a greater risk of developing a crippling form of hip disease, if they’re fed a diet that contains too much calcium. They must eat a food that’s specifically designed to be safe for large breed puppies. To keep the risk of diet-related hip disease low, avoid switching to an adult recipe too soon."
49
  elif breed == 'Goldendoodle':
50
- return "Goldendoodle puppies, adults and seniors each have different nutritional needs. Puppies have an increased risk of developing a crippling and permanent form of hip disease if they’re fed a diet that contains too much calcium while they’re still growing. Older goldendoodles require more protein and fewer calories than younger animals."
51
  elif breed == 'Havanese':
52
- return "Havanese can be prone to becoming overweight, so select a dog food that is formulated to meet their specific energy requirements without overloading them with excessive calories. They are susceptible to joint problems, including legg-calve-perthes disease and patella luxation, so the food you choose should contain ingredients like glucosamine and chondroitin. Opt for a dog food that lists high-quality animal-based proteins as the main ingredients, such as chicken, turkey, or fish."
53
  elif breed == 'Jack Russels':
54
- return "Consider your Jack Russells life stage—whether it’s a puppy, adult, or senior dog—and select a food formulated specifically for that age. Jack Russell Terriers are energetic, and active dogs, so a diet rich in high-quality proteins is important. Look for dog foods that list animal-based proteins (such as chicken, turkey, or fish) as the main ingredients. Avoid products that rely heavily on plant-based protein sources. Look for recipes that include sources of beneficial fats such as omega-3 fatty acids (found in fish oil or flaxseed) to promote a healthy coat and support overall well-being."
55
  elif breed == 'Labradoodle':
56
- return "Look for a dog food that contains high-quality protein sources as the main ingredient, such as chicken, beef, or fish. Labradoodles can be prone to digestive issues, so opt for a dog food that is easily digestible. Look for formulas that contain high-quality sources of carbohydrates, such as sweet potatoes or brown rice, and dietary fibers for optimal digestion. Labradoodles often have wavy or curly coats so choosing a dog food that includes omega-3 fatty acids, such as fish oil or flaxseed, can support their coat health and skin condition."
57
  elif breed == 'Labrador Retrievers':
58
- return "Finding the best food for your Lab’s age is far more important than it is for most other dogs. That’s because Labs are large breed dogs, which is not a concern for adult Labs.However, unlike adults, Lab puppies have an increased risk of developing a crippling and permanent form of hip disease if they’re fed a diet that contains too much calcium for their larger breed size."
59
  elif breed == 'Maltese':
60
- return "Maltese dogs need a balanced diet with an adequate amount of protein, usually around 18-30% protein content. Ensure the protein source is of good quality, as this will help maintain their lean muscle mass and overall health.A moderate amount of healthy fats (around 8-20%) is essential for Maltese dogs to support their energy levels and maintain their skin and coat health.Maltese dogs are small and can gain weight quickly, so portion control is crucial."
61
  elif breed == 'Miniature Schnauzer':
62
- return "Smaller kibble size and provide the right balance of nutrients tailored to their needs. As ever, look for a dog food that lists high-quality animal-based proteins, such as chicken, turkey, or fish, as the main ingredients. Miniature Schnauzers can be prone to weight gain, so select a dog food that helps them maintain a healthy body weight. Miniature Schnauzers can also suffer from dental issues, so opt for a dog food that supports dental health. Look for a dog food that contains ingredients such as omega-3 fatty acids to support healthy skin and a shiny coat."
63
  elif breed == 'Pitbull':
64
- return "Pitbulls are active dogs that require a diet with a significant protein content. Look for dog foods with at least 20-30% protein, with high-quality sources like chicken, beef, or fish listed as the first ingredient. Moderate amount of healthy fats (around 10-20%) is important to provide energy and support skin and coat health. Avoid dog food uses more of fillers such as corn, wheat, and soy, which provide little nutritional value."
65
  elif breed == 'Pomeranian':
66
- return "Look for dog food with real meat (e.g., chicken, turkey, lamb) listed as the first ingredient. Pomeranians need a moderate amount of healthy fats for energy and a shiny coat. Look for sources like chicken fat or fish oil. Pomeranians have small mouths, so if you are opting for a dry food choose small-sized kibbles that are easier for them to chew and digest."
67
  elif breed == 'Rottweiler':
68
- return "This large breed benefits from a diet rich in high-quality animal protein sources such as chicken, beef, or fish, so look for a dog food with named meat protein sources at the top of the ingredient list. Healthy fats are also crucial for Rottweilers to maintain optimal skin and coat health. Opt for dog foods that contain sources of omega-3 and omega-6 fatty acids such as fish oil, flaxseed, or chicken fat. You should also avoid dog foods that contain artificial colors, flavors, or preservatives and opt for natural and minimally processed options."
69
  elif breed == 'Shiba Inu':
70
- return "When choosing a dog food for your Shiba Inu, look for one which contains real animal-based protein sources as the main ingredients. Chicken, beef, fish, or lamb are excellent protein options. Shiba Inus are a small to medium-sized breed, so select a dog food with kibble that is appropriate for their mouth size. Look for dog food that includes sources of omega-3 fatty acids, such as fish oil or flaxseed."
71
  elif breed == 'Siberian Husky':
72
- return "The nutritional requirement depends on the age of your particular husky. Adult huskies can do well on just about any top-rated, nutrient-balanced dog food. However, Husky puppies have a slightly higher (2.2%) risk1 of developing a crippling and permanent form of hip disease a risk which may increase if they’re fed a diet that contains too much calcium (while they’re still growing). Senior huskies need more protein and fewer calories than younger animals."
73
  elif breed == 'Weimaraners':
74
- return "Weimaraner dogs are prone to skeletal issues such as hip dysplasia, it’s, therefore, crucial to choose a dog food that has appropriate and balanced levels of calcium and phosphorus to support healthy bone growth. Look for recipes which contain glucosamine and chondroitin. It’s also important not to exercise your dog an hour either before or after meals. A Weimaraner’s diet should be formulated for a large-sized breed with high energy and exercise needs."
75
  elif breed == 'Vizsla':
76
- return "Vizslas are prone to skeletal issues such as hip dysplasia so look for recipes which contain glucosamine and chondroitin. Healthy fats provide a concentrated source of energy and are essential for maintaining a healthy coat and skin. Look for foods with moderate levels of healthy fats, such as omega-3 and omega-6 fatty acids. They benefit from a diet rich in high-quality animal protein sources such as chicken, beef, or fish, so look for a dog food with named meat protein sources at the top of the ingredient list."
77
  elif breed == 'Yorkie':
78
- return "The best food for a Yorkie is based on the age and life stage of the dog. A dog food designed for an adult Yorkie may contain too little calcium for a growing puppy or too little protein and too many calories for a less active older dog. A Yorkie puppy needs 1.29% leucine (one of 12 essential amino acids) while an adult requires just 0.68% of the exact same nutrient. In comparison, A senior Yorkie benefits from a dog food that contains more protein and fewer calories per serving."
79
  else:
80
  return "Nutritional info currently not available for your breed. Will be updated soon!"
 
13
  can be found [here](https://huggingface.co/google/flan-t5-small).
14
  """
15
  if breed == 'Australian Shepherd':
16
+ return "1. Active or working breed formula with high protein and fat. 2. Quality animal protein for essential amino acids. 3. Moderate-to-high fat for energy. 4. Nutritious carbs, whole grains, veggies, fruits."
17
  elif breed == 'Basset Hound':
18
+ return "1. Opt for calorie-controlled food to prevent obesity. 2. Look for glucosamine and chondroitin for joint health. 3. Prioritize easily digestible ingredients. 4. Choose high-quality proteins and fibers for digestion."
19
  elif breed == 'Bernedoodles':
20
+ return "1. Seek complete, balanced dog foods with real meat as the primary ingredient. 2. Prioritize animal-based protein for a Bernedoodle's active lifestyle. 3. Opt for foods containing moderate levels of healthy fats (omega-3 and omega-6). 4. Select the appropriate life stage formula (puppy, adult, or senior)."
21
  elif breed == 'Bichon Frise':
22
+ return "1. Prioritize limited, wholesome ingredients and novel proteins. 2. Watch for allergies in this breed. 3. Small breeds like Bichons may be prone to urolithiasis. 4. Maintain proper hydration with fresh water access."
23
  elif breed == 'Boston Terrier':
24
+ return "1. Prioritize joint health with glucosamine and chondroitin. 2. Choose dog food with top-quality animal proteins (chicken, turkey, fish). 3. Ensure essential amino acids for muscle support. 4. Be cautious of potential allergens for sensitive Boston Terriers."
25
  elif breed == 'Boxer':
26
+ return "1. Prioritize real meat as the first ingredient. 2. Avoid excessive reliance on plant-based proteins. 3. Opt for a diet supporting a healthy weight. 4. Consider taurine concerns with grain-free options."
27
  elif breed == 'Boykin Spaniel':
28
+ return "1. Choose energy-appropriate food for active Boykin Spaniels. 2. Seek balanced nutrition with proteins, fats, carbs, vitamins, and minerals. 3. Prioritize high-quality animal-based proteins like chicken, beef, or fish. 4. Support muscle development and maintenance with essential amino acids."
29
  elif breed == 'Cairn Terrier':
30
+ return "1. Control calorie intake and portion size. 2. Choose food for moderately active dogs. 3. Seek omega-3 sources like fish oil or flaxseed. 4. Promote skin, coat health, and overall well-being."
31
  elif breed == 'Cane Corso':
32
+ return "1. Large breed formula with portion control. 2. Protein around 25-30%, moderate fat 10-15%. 3. Prevent obesity in Cane Corsos. 4. Whole grains or vegetables for carbs."
33
  elif breed == 'Catahoula Leopards':
34
+ return "1. Opt for high-protein medium-large breed food. 2. Prioritize named meat protein sources. 3. Include taurine and vitamin A for eye health. 4. Ensure balanced calcium and phosphorus for bones."
35
  elif breed == 'Chihuahua':
36
+ return "1. Different nutritional needs by age. 2. Chihuahua puppies require more calcium. 3. Adult Chihuahuas need less arginine. 4. Seniors benefit from more protein, fewer calories."
37
  elif breed == 'Corgi':
38
+ return "1. Prioritize real animal-based protein. 2. Choose size-appropriate kibble for digestion. 3. Control calories and monitor portions. 4. Opt for easily digestible food with omega-3s."
39
  elif breed == 'Dachshund':
40
+ return "1. Tailored nutrition for different life stages. 2. Adjusted calcium levels for puppies and adults. 3. Higher protein for senior dachshunds. 4. Varying amino acid requirements."
41
  elif breed == 'Doberman Pinscher':
42
+ return "1. Prioritize food with glucosamine and chondroitin. 2. Opt for easily digestible, high-quality ingredients. 3. Avoid excessive fillers and artificial additives. 4. Choose food with animal-based proteins like chicken or fish."
43
  elif breed == 'French Bulldog':
44
+ return "1. Opt for high-quality protein sources (e.g., chicken, beef, fish). 2. Avoid excessive fillers like corn, soy, and wheat. 3. Pick moderate-fat food to manage French Bulldog weight. 4. Choose food with omega-3 for skin, coat, and joint health."
45
  elif breed == 'German Shepherd':
46
+ return "1. Prioritize real meat as the primary ingredient. 2. Seek added glucosamine and chondroitin for joint health. 3. Opt for omega-3 fatty acids, like fish oil. 4. Avoid excessive fillers (corn, soy, wheat), adapt to life stage."
47
  elif breed == 'Golden Retriever':
48
+ return "1. Choose quality food for adult goldens. 2. Opt for safe large breed puppy food. 3. Prevent hip disease with proper nutrition. 4. Delay switching to adult food."
49
  elif breed == 'Goldendoodle':
50
+ return "1. Puppies need lower calcium for healthy growth. 2. Watch for hip disease risk in puppy diet. 3. Seniors require more protein, fewer calories. 4. Tailor nutrition to different life stages."
51
  elif breed == 'Havanese':
52
+ return "1. Avoid excess calories for Havanese to prevent overweight. 2. Include glucosamine and chondroitin for joint health. 3. Prioritize high-quality animal proteins like chicken. 4. Opt for fish-based dog food for your Havanese."
53
  elif breed == 'Jack Russels':
54
+ return "1. Choose food for your Jack Russell's life stage. 2. Prioritize high-quality animal-based proteins. 3. Avoid heavy reliance on plant-based proteins. 4. Seek recipes with omega-3 fats for coat health."
55
  elif breed == 'Labradoodle':
56
+ return "1. Prioritize high-quality protein sources like chicken, beef, or fish. 2. Opt for easily digestible dog food due to Labradoodles' digestive sensitivity. 3. Choose formulas with quality carbohydrates like sweet potatoes or brown rice. 4. Support coat health with omega-3 fatty acids like fish oil or flaxseed."
57
  elif breed == 'Labrador Retrievers':
58
+ return "1. Age-appropriate food crucial for Labs, especially puppies. 2. Large breed size increases hip disease risk in Lab pups. 3. Avoid excessive calcium in puppy diets. 4. Adult Labs have different dietary needs."
59
  elif breed == 'Maltese':
60
+ return "1. Balanced diet: Protein 18-30%. 2. Quality protein for lean muscle. 3. Moderate healthy fats (8-20%). 4. Watch portion control for weight."
61
  elif breed == 'Miniature Schnauzer':
62
+ return "1. Choose small kibble size and tailored nutrient balance for Miniature Schnauzers. 2. Prioritize high-quality animal-based proteins like chicken, turkey, or fish. 3. Select dog food that aids in maintaining a healthy body weight. 4. Opt for food with dental support and omega-3 fatty acids for skin and coat health."
63
  elif breed == 'Pitbull':
64
+ return "1. Pitbulls need a diet with 20-30% protein, preferably from sources like chicken, beef, or fish as the first ingredient. 2. Include 10-20% healthy fats for energy and skin/coat health. 3. Avoid dog foods with fillers like corn, wheat, and soy, which offer low nutritional value. 4. Ensure your Pitbull's diet is tailored to their activity level and individual needs."
65
  elif breed == 'Pomeranian':
66
+ return "1. Prioritize dog food with real meat (chicken, turkey, lamb) as the first ingredient. 2. Ensure it contains healthy fats like chicken fat or fish oil for energy and a shiny coat. 3. Opt for small-sized kibbles for easier chewing and digestion for Pomeranians. 4. Check the ingredient list for quality and avoid fillers or artificial additives."
67
  elif breed == 'Rottweiler':
68
+ return "1. Prioritize high-quality animal protein sources like chicken, beef, or fish for large breed dogs like Rottweilers. 2. Choose dog foods with omega-3 and omega-6 fatty acid sources (fish oil, flaxseed, or chicken fat) for skin and coat health. 3. Avoid dog foods with artificial colors, flavors, or preservatives; opt for natural, minimally processed options. 4. Ensure named meat protein sources are at the top of the ingredient list in your Rottweiler's food."
69
  elif breed == 'Shiba Inu':
70
+ return "1. Prioritize real animal-based protein like chicken, beef, fish, or lamb as the main ingredients for your Shiba Inu's food. 2. Choose kibble size suitable for your Shiba Inu's small to medium-sized mouth. 3. Opt for dog food with omega-3 fatty acids, like fish oil or flaxseed, for overall health. 4. Ensure the dog food meets your Shiba Inu's specific dietary needs."
71
  elif breed == 'Siberian Husky':
72
+ return "1. Adult huskies thrive on balanced dog food. 2. Husky puppies need lower calcium for hip health. 3. Senior huskies require more protein, fewer calories. 4. Nutritional requirements vary with age."
73
  elif breed == 'Weimaraners':
74
+ return "1. Choose dog food with balanced calcium and phosphorus levels for Weimaraners to support healthy bone growth. 2. Look for recipes with added glucosamine and chondroitin to promote joint health. 3. Avoid exercise one hour before or after meals to reduce the risk of bloat in Weimaraners. 4. Opt for a diet formulated for large-sized breeds with high energy and exercise requirements."
75
  elif breed == 'Vizsla':
76
+ return "1. Vizslas are prone to hip dysplasia, so prioritize dog foods with glucosamine and chondroitin for joint health. 2. Ensure their diet includes moderate levels of healthy fats (omega-3 and omega-6) for coat and skin health. 3. Opt for dog foods with high-quality animal protein sources like chicken, beef, or fish at the top of the ingredient list. 4. Provide a well-balanced diet to support your Vizsla's overall health and well-being."
77
  elif breed == 'Yorkie':
78
+ return "1. Choose age-appropriate dog food for puppies, adults, and seniors. 2. Ensure 1.29% leucine for growing Yorkie puppies. 3. Adult Yorkies need 0.68% leucine and balanced protein and calories. 4. Provide higher protein and fewer calories for senior Yorkies."
79
  else:
80
  return "Nutritional info currently not available for your breed. Will be updated soon!"