Spaces:
Runtime error
Runtime error
Looping complete. Finally! "-"
#6
by
Rjshri
- opened
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 "
|
17 |
elif breed == 'Basset Hound':
|
18 |
-
return "
|
19 |
elif breed == 'Bernedoodles':
|
20 |
-
return "
|
21 |
elif breed == 'Bichon Frise':
|
22 |
-
return "
|
23 |
elif breed == 'Boston Terrier':
|
24 |
-
return "
|
25 |
elif breed == 'Boxer':
|
26 |
-
return "
|
27 |
elif breed == 'Boykin Spaniel':
|
28 |
-
return "
|
29 |
elif breed == 'Cairn Terrier':
|
30 |
-
return "
|
31 |
elif breed == 'Cane Corso':
|
32 |
-
return "
|
33 |
elif breed == 'Catahoula Leopards':
|
34 |
-
return "
|
35 |
elif breed == 'Chihuahua':
|
36 |
-
return "
|
37 |
elif breed == 'Corgi':
|
38 |
-
return "
|
39 |
elif breed == 'Dachshund':
|
40 |
-
return "
|
41 |
elif breed == 'Doberman Pinscher':
|
42 |
-
return "
|
43 |
elif breed == 'French Bulldog':
|
44 |
-
return "
|
45 |
elif breed == 'German Shepherd':
|
46 |
-
return "
|
47 |
elif breed == 'Golden Retriever':
|
48 |
-
return "
|
49 |
elif breed == 'Goldendoodle':
|
50 |
-
return "
|
51 |
elif breed == 'Havanese':
|
52 |
-
return "
|
53 |
elif breed == 'Jack Russels':
|
54 |
-
return "
|
55 |
elif breed == 'Labradoodle':
|
56 |
-
return "
|
57 |
elif breed == 'Labrador Retrievers':
|
58 |
-
return "
|
59 |
elif breed == 'Maltese':
|
60 |
-
return "
|
61 |
elif breed == 'Miniature Schnauzer':
|
62 |
-
return "
|
63 |
elif breed == 'Pitbull':
|
64 |
-
return "Pitbulls
|
65 |
elif breed == 'Pomeranian':
|
66 |
-
return "
|
67 |
elif breed == 'Rottweiler':
|
68 |
-
return "
|
69 |
elif breed == 'Shiba Inu':
|
70 |
-
return "
|
71 |
elif breed == 'Siberian Husky':
|
72 |
-
return "
|
73 |
elif breed == 'Weimaraners':
|
74 |
-
return "
|
75 |
elif breed == 'Vizsla':
|
76 |
-
return "Vizslas are prone to
|
77 |
elif breed == 'Yorkie':
|
78 |
-
return "
|
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!"
|