Plantoi / showcase_data.py
Al1Abdullah's picture
Deploy Plantoi: Update app, requirements, and model
47058bc
# In-depth descriptions for the model showcase, using keys from disease_data.py as the source of truth.
SHOWCASE_DATA = {
'Apple Apple Scab': {
'title': 'Apple Scab',
'short_description': 'A common fungal disease that affects apple and crabapple trees, causing cosmetic damage to leaves and fruit. While it can reduce yield, it rarely kills the tree, and with proper care, your tree can thrive.',
'quick_symptoms': [
'Olive-green or brown spots on leaves, fruit, and twigs.',
'Leaves may become twisted and puckered.',
'Infected fruit develops dark, scabby lesions.'
],
'fast_prevention': [
'Plant resistant varieties and ensure good air circulation through pruning.',
'Rake up and destroy fallen leaves in autumn to reduce fungal overwintering.'
]
},
'Apple Apple Black rot': {
'title': 'Apple Black Rot',
'short_description': "A fungal disease that can cause serious damage to apple trees, affecting fruit, leaves, and bark. Early detection and management are key to protecting your harvest and the tree's health.",
'quick_symptoms': [
'Firm, brown-to-black rot on fruit that expands in concentric rings.',
'Purple or brown spots on leaves, often leading to defoliation.',
'Sunken, reddish-brown cankers on branches.'
],
'fast_prevention': [
'Prune out dead or cankered wood during dormancy.',
'Maintain a regular spray schedule and promote rapid drying of foliage.'
]
},
'Apple Cedar apple rust': {
'title': 'Cedar Apple Rust',
'short_description': 'A fascinating and complex fungal disease requiring both an apple or crabapple and a cedar or juniper tree to complete its lifecycle. It primarily affects leaves and fruit, creating striking but damaging spots.',
'quick_symptoms': [
'Bright yellow-orange spots on leaves, often with a reddish border.',
'Small, raised tube-like structures (aecia) may appear on the underside of leaves.',
'Fruit may develop similar orange lesions.'
],
'fast_prevention': [
'Avoid planting susceptible apple varieties near Eastern red cedars.',
'Apply fungicides during the primary infection period in spring.'
]
},
'Apple Apple Healthy': {
'title': 'Healthy Apple Tree',
'short_description': "Your apple tree is flourishing, showing vibrant growth and no signs of significant disease. Consistent care will ensure a bountiful harvest and long-term vitality.",
'quick_symptoms': [
'Lush, green foliage with uniform color.',
'Smooth, unblemished bark and strong branch structure.',
'Plentiful, well-formed buds and flowers.'
],
'fast_prevention': [
'Continue providing consistent water, sunlight, and proper nutrition.',
'Monitor regularly for early signs of pests or disease to act quickly.'
]
},
'Cherry Cherry Powdery mildew': {
'title': 'Cherry Powdery Mildew',
'short_description': 'A fungal disease that covers leaves and fruit with a white, powdery coating. It thrives in moderate temperatures and high humidity, but can be managed effectively with good cultural practices.',
'quick_symptoms': [
'White, powdery patches on leaves, shoots, and sometimes fruit.',
'Leaves can become distorted, curl, or drop prematurely.',
'Infected fruit may be stunted or russeted.'
],
'fast_prevention': [
'Prune for good air circulation to reduce humidity within the canopy.',
'Apply fungicides or horticultural oils at the first sign of disease.'
]
},
'Cherry Cherry Healthy': {
'title': 'Healthy Cherry Tree',
'short_description': 'A picture of health, this cherry tree shows all the signs of vitality. With continued care, it promises to provide both beauty and a delicious harvest.',
'quick_symptoms': [
'Bright green, glossy leaves.',
'Strong branches with no signs of cankers or oozing.',
'Abundant and healthy flower and fruit development.'
],
'fast_prevention': [
'Maintain a consistent watering schedule, especially during dry periods.',
'Protect the trunk from mechanical injury and winter sunscald.'
]
},
'Corn Corn Gray leaf spot': {
'title': 'Corn Gray Leaf Spot',
'short_description': 'A significant fungal disease of corn that thrives in warm, humid conditions with extended periods of leaf wetness. It reduces the photosynthetic area of leaves, which can impact grain fill and yield.',
'quick_symptoms': [
'Small, pale, rectangular lesions that elongate between leaf veins.',
'Lesions mature to a grayish or tan color with sharp, defined borders.',
'Severe infection can cause leaves to wither and die prematurely.'
],
'fast_prevention': [
'Choose resistant hybrids and practice crop rotation with non-host crops.',
'Manage residue through tillage to reduce fungal survival.'
]
},
'Corn Corn Common rust': {
'title': 'Corn Common Rust',
'short_description': 'A fungal disease that appears as small, cinnamon-brown pustules on corn leaves. While widespread, it typically develops later in the season and often has a minimal impact on the yield of healthy plants.',
'quick_symptoms': [
'Oval or elongated, cinnamon-brown pustules on both upper and lower leaf surfaces.',
'Pustules rupture, releasing powdery, rust-colored spores.',
'Can cause leaves to yellow and dry prematurely in heavy infections.'
],
'fast_prevention': [
'Planting resistant corn hybrids is the most effective management strategy.',
'Most field corn has sufficient resistance, making fungicides unnecessary in many cases.'
]
},
'Corn Corn Northern Leaf Blight': {
'title': 'Corn Northern Leaf Blight',
'short_description': 'A fungal disease characterized by large, cigar-shaped lesions on the leaves of corn plants. It flourishes in cool, wet weather and can cause significant yield loss if it develops early in the season.',
'quick_symptoms': [
'Long, elliptical, tan or grayish lesions, typically 1 to 6 inches long.',
'Lesions first appear on lower leaves and progress up the plant.',
'Heavy infestation gives the plant a blighted or "fired" appearance.'
],
'fast_prevention': [
'Select resistant hybrids adapted to your region.',
'Use crop rotation and tillage to bury infected residue.'
]
},
'Corn Corn Healthy': {
'title': 'Healthy Corn Plant',
'short_description': 'This corn plant is growing strong and tall, a testament to good soil, adequate sun, and proper care. It is on the right track for producing high-quality ears.',
'quick_symptoms': [
'Tall, sturdy stalks with broad, deep green leaves.',
'Well-developed tassels and silks appearing at the appropriate time.',
'No signs of spots, streaks, or stunting.'
],
'fast_prevention': [
'Ensure consistent soil moisture, providing about 1 inch of water per week.',
'Manage weeds to reduce competition for nutrients and water.'
]
},
'Grape Grape Black rot': {
'title': 'Grape Black Rot',
'short_description': 'A serious fungal disease of grapes that can destroy the entire fruit crop if left unchecked. It affects all green parts of the vine, but the damage to the fruit is the most devastating.',
'quick_symptoms': [
'Small, brownish, circular spots on leaves that develop dark borders.',
'Fruit rots, turns dark brown, and then shrivels into hard, black "mummies".',
'Dark, elongated lesions can appear on shoots and tendrils.'
],
'fast_prevention': [
'Choose a sunny, well-drained site with good air movement.',
'Apply fungicides from early spring through the growing season.'
]
},
'Grape Grape Black Measles': {
'title': 'Grape Esca (Black Measles)',
'short_description': 'A complex and destructive trunk disease caused by a group of fungi. It can lead to a gradual decline or sudden dieback of the vine, with symptoms that can be quite dramatic.',
'quick_symptoms': [
'Leaves show "tiger stripe" patterns of yellowing or reddening between veins.',
'Small, dark spots or "measles" may appear on grape berries.',
'In acute cases, the entire vine or a part of it may suddenly wilt and die.'
],
'fast_prevention': [
'Practice good pruning hygiene, making clean cuts and protecting large wounds.',
'Delay pruning until late winter or early spring to allow for wound healing.'
]
},
'Grape Grape Isariopsis Leaf Spot': {
'title': 'Grape Leaf Blight',
'short_description': 'Also known as Isariopsis Leaf Spot, this fungal disease typically appears late in the season. While it can cause some defoliation, it is generally considered a minor disease and rarely impacts yield significantly.',
'quick_symptoms': [
'Irregular, dark brown or black lesions on leaves, often surrounded by a yellow halo.',
'Lesions can merge, causing large areas of the leaf to die.',
'Infected leaves may drop prematurely.'
],
'fast_prevention': [
'Rake and destroy fallen leaves to reduce the source of infection.',
'Promote good air circulation through proper pruning and training of vines.'
]
},
'Grape Grape Healthy': {
'title': 'Healthy Grape Vine',
'short_description': 'This grapevine is vigorous and well-structured, a sign of excellent health and potential. It is perfectly poised to produce a crop of delicious, high-quality grapes.',
'quick_symptoms': [
'Lush canopy of large, uniformly green leaves.',
'Strong, flexible canes and a sturdy trunk.',
'Healthy development of flower clusters and fruit set.'
],
'fast_prevention': [
'Maintain a balanced fertilization program based on soil tests.',
'Ensure the trellis system provides adequate support and sun exposure.'
]
},
'Peach Peach Bacterial spot': {
'title': 'Peach Bacterial Spot',
'short_description': "A persistent bacterial disease that affects peaches, nectarines, and plums, causing spots on leaves and fruit. It is most severe in warm, rainy weather and on sandy soils.",
'quick_symptoms': [
'Angular, purple or black spots on leaves, with centers that may fall out.',
'Leaves can turn yellow and drop, leading to significant defoliation.',
'Fruit develops pitted, cracked, or sunken spots.'
],
'fast_prevention': [
'Plant resistant varieties when available.',
'Maintain tree vigor with proper fertilization and irrigation to help withstand infection.'
]
},
'Peach Peach Healthy': {
'title': 'Healthy Peach Tree',
'short_description': "Your peach tree is thriving, showing the robust health needed for a sweet and juicy harvest. It's a beautiful example of a well-cared-for fruit tree.",
'quick_symptoms': [
'Full canopy of vibrant, green leaves.',
'Smooth bark without cankers or signs of insect borers.',
'Strong fruit development with good color and size.'
],
'fast_prevention': [
'Thin fruit to encourage larger peaches and prevent branch breakage.',
'Apply dormant oil in late winter to control overwintering pests.'
]
},
'Bell pepper Bell pepper Bacterial spot': {
'title': 'Bell Pepper Bacterial Spot',
'short_description': 'A common bacterial infection in warm, humid climates that can cause spotting on leaves and fruit, potentially impacting yield and quality. Good sanitation is your first line of defense.',
'quick_symptoms': [
'Small, water-soaked spots on leaves that turn dark and angular.',
'Spots may have a yellow halo and centers can fall out, creating a "shot-hole" look.',
'Fruit develops raised, scab-like spots.'
],
'fast_prevention': [
'Use disease-free seeds and rotate crops, avoiding planting peppers in the same spot for at least a year.',
'Water at the base of the plant to keep foliage dry.'
]
},
'Bell pepper Bell pepper Healthy': {
'title': 'Healthy Bell Pepper Plant',
'short_description': 'This bell pepper plant is thriving, exhibiting strong stems and vibrant leaves, ready to produce delicious fruit. Your attentive care is paying off beautifully.',
'quick_symptoms': [
'Sturdy stems and full, deep green leaves.',
'Absence of spots, yellowing, or wilting.',
'Vigorous production of flowers and young peppers.'
],
'fast_prevention': [
'Ensure consistent watering and well-drained soil.',
'Provide support as the plant grows to prevent stem breakage.'
]
},
'Potato Potato Early blight': {
'title': 'Potato Early Blight',
'short_description': 'A common fungal disease of potatoes and tomatoes, caused by Alternaria species. Despite its name, it often appears after the plants have blossomed, causing distinctive "target-like" spots on leaves.',
'quick_symptoms': [
'Dark brown to black spots on lower leaves, often with a "bulls-eye" pattern of concentric rings.',
'A yellow halo may surround the spots.',
'Tubers can develop dark, sunken lesions.'
],
'fast_prevention': [
'Rotate crops, avoiding potatoes or tomatoes in the same plot for 2-3 years.',
'Ensure good nutrition and soil moisture to keep plants vigorous.'
]
},
'Potato Potato Late blight': {
'title': 'Potato Late Blight',
'short_description': 'A devastating disease of potatoes and tomatoes caused by a water mold, Phytophthora infestans. It thrives in cool, moist conditions and can destroy a crop in a very short time.',
'quick_symptoms': [
'Large, dark green to black, water-soaked lesions on leaves and stems.',
'A fuzzy, white mold may appear on the underside of leaves in humid conditions.',
'Tubers develop a reddish-brown, firm rot under the skin.'
],
'fast_prevention': [
'Use certified disease-free seed potatoes.',
'Apply fungicides preventively, especially when cool, wet weather is forecast.'
]
},
'Potato Potato Healthy': {
'title': 'Healthy Potato Plant',
'short_description': 'This potato plant is the picture of health, with lush foliage and strong stems. It is working hard below the ground to produce a fantastic crop of tubers.',
'quick_symptoms': [
'Dense, upright canopy of green leaves.',
'No signs of yellowing, spotting, or wilting.',
'Vigorous growth throughout the season.'
],
'fast_prevention': [
'"Hill" soil around the base of the plants to protect developing tubers from sun and pests.',
'Monitor for pests like the Colorado potato beetle.'
]
},
'Strawberry Strawberry Leaf scorch': {
'title': 'Strawberry Leaf Scorch',
'short_description': 'A fungal disease that causes purplish-brown blotches on strawberry leaves. While it can make a patch look ragged, it typically has a minor effect on yield unless the infection is very severe.',
'quick_symptoms': [
'Irregular, purplish to brownish spots on leaves.',
'As spots merge, the leaf takes on a "scorched" appearance between the veins.',
'Small, dark, speck-like fruiting bodies may appear in the center of lesions.'
],
'fast_prevention': [
'Plant in a sunny location with good air circulation.',
'Remove and destroy infected leaves after harvest to reduce inoculum.'
]
},
'Strawberry Strawberry Healthy': {
'title': 'Healthy Strawberry Plant',
'short_description': 'This strawberry plant is vibrant and robust, ready to produce sweet, juicy berries. Its healthy state is a great sign for the delicious treats to come.',
'quick_symptoms': [
'Bright green, trifoliate leaves with no discoloration.',
'A well-developed crown with new growth emerging from the center.',
'Plentiful flowers and developing fruit.'
],
'fast_prevention': [
'Apply a layer of straw mulch to keep fruit clean and conserve moisture.',
'Renovate the strawberry patch after harvest to maintain vigor.'
]
},
'Tomato Tomato Bacterial spot': {
'title': 'Tomato Bacterial Spot',
'short_description': 'A common and problematic disease of tomatoes, especially in warm, wet conditions. It can defoliate plants and cause unsightly lesions on fruit, making sanitation crucial.',
'quick_symptoms': [
'Small, water-soaked, angular spots on leaves that later turn greasy and black.',
'Spots may have a yellow halo.',
'Fruit can have raised, dark, scabby spots.'
],
'fast_prevention': [
'Use disease-free seed and sanitize stakes and tools.',
'Avoid overhead watering to keep leaves as dry as possible.'
]
},
'Tomato Tomato Early blight': {
'title': 'Tomato Early Blight',
'short_description': 'A very common fungal disease that starts on the lower, older leaves and works its way up the plant. It can cause significant defoliation, which exposes fruit to sunscald and reduces plant productivity.',
'quick_symptoms': [
'Dark, concentric "bulls-eye" spots on lower leaves.',
'Stems can develop dark, sunken lesions, a condition known as "collar rot".',
'Affected leaves yellow and drop.'
],
'fast_prevention': [
'Mulch heavily to prevent spores from splashing from the soil onto leaves.',
'Prune lower leaves as the plant grows to improve air circulation.'
]
},
'Tomato Tomato Late blight': {
'title': 'Tomato Late Blight',
'short_description': 'The same aggressive water mold that affects potatoes, late blight can decimate a tomato patch in just a few days under cool, wet conditions. Vigilance is absolutely key.',
'quick_symptoms': [
'Large, greasy, gray-green to blackish blotches on leaves.',
'White, fuzzy mold can grow on leaf undersides.',
'Fruit develops large, firm, brown or olive-colored greasy spots.'
],
'fast_prevention': [
'Monitor weather forecasts and apply preventative fungicides when late blight is reported in your area.',
'Ensure ample spacing between plants for quick drying.'
]
},
'Tomato Tomato Leaf Mold': {
'title': 'Tomato Leaf Mold',
'short_description': 'A fungal disease that thrives in high humidity, making it a common problem in greenhouses but also possible in the field. It primarily affects the leaves, reducing the plant\u0027s ability to photosynthesize.',
'quick_symptoms': [
'Pale green or yellowish spots on the upper side of leaves.',
'An olive-green to brownish, velvety mold grows on the underside of these spots.',
'Infected leaves eventually wither and die.'
],
'fast_prevention': [
'Provide excellent air circulation and stake or trellis plants.',
'Water the soil directly and avoid getting the foliage wet, especially late in the day.'
]
},
'Tomato Tomato Septoria leaf spot': {
'title': 'Tomato Septoria Leaf Spot',
'short_description': 'Another prolific leaf-spotting disease of tomato that starts on the bottom of the plant and moves up. It can cause extensive defoliation, weakening the plant and impacting fruit production.',
'quick_symptoms': [
'Many small, circular spots with dark borders and tan or gray centers.',
'Tiny black dots (pycnidia) can be seen in the center of the spots.',
'Affected leaves turn yellow, then brown, and fall off.'
],
'fast_prevention': [
'Rotate crops and control weeds, especially those in the nightshade family.',
'Remove infected lower leaves as they appear to slow the disease\u0027s spread.'
]
},
'Tomato Tomato Spider mites': {
'title': 'Two-Spotted Spider Mite',
'short_description': 'These tiny arachnids are not insects but are common pests on many plants, including tomatoes. They use piercing mouthparts to suck cell contents from leaves, causing a stippling effect.',
'quick_symptoms': [
'Yellow or white pinprick spots (stippling) on leaves.',
'Fine webbing may be visible on the underside of leaves and around stems.',
'In heavy infestations, leaves can turn yellow or bronze and drop off.'
],
'fast_prevention': [
'Regularly spray plants with a strong stream of water to dislodge mites.',
'Encourage predatory insects or use insecticidal soaps or horticultural oils.'
]
},
'Tomato Tomato Target Spot': {
'title': 'Tomato Target Spot',
'short_description': 'Caused by the fungus Corynespora cassiicola, this disease affects leaves, stems, and fruit. Its "target spot" lesions can be confused with Early Blight, but they have their own distinct characteristics.',
'quick_symptoms': [
'Brown to black leaf spots with distinct concentric rings, creating a "target" look.',
'Spots are often larger than Septoria and may not have the dark specks.',
'Fruit can develop sunken, pitted spots, often near the stem end.'
],
'fast_prevention': [
'Improve air circulation by staking and pruning plants.',
'Rotate with non-susceptible crops and maintain a mulch layer.'
]
},
'Tomato Tomato Mosaic virus': {
'title': 'Tomato Mosaic Virus',
'short_description': 'A persistent viral disease that can survive for years in plant debris or on contaminated tools. It causes a mosaic-like pattern on leaves and can reduce both fruit quality and yield.',
'quick_symptoms': [
'Light and dark green mottling or mosaic pattern on leaves.',
'Leaves may be fern-like in appearance or otherwise distorted.',
'Internal browning can occur in the fruit.'
],
'fast_prevention': [
'Wash hands thoroughly, especially if you use tobacco products, before handling plants.',
'Disinfect tools and avoid working with plants when they are wet.'
]
},
'Tomato Tomato Yellow Leaf Curl Virus': {
'title': 'Tomato Yellow Leaf Curl Virus',
'short_description': 'A devastating viral disease spread by whiteflies. It severely stunts the plant and can lead to a total loss of fruit production. Management focuses entirely on controlling the insect vector.',
'quick_symptoms': [
'New leaves are small, cupped upward, and have yellow margins.',
'The plant becomes severely stunted and bushy due to shortened internodes.',
'Flower and fruit production is drastically reduced or ceases altogether.'
],
'fast_prevention': [
'Control whitefly populations using reflective mulches, insecticides, or physical barriers like netting.',
'Remove and destroy infected plants immediately to reduce the virus source.'
]
},
'Tomato Tomato Healthy': {
'title': 'Healthy Tomato Plant',
'short_description': 'This tomato plant is a model of health, with lush foliage and a strong structure. It is well on its way to producing a delicious and rewarding crop.',
'quick_symptoms': [
'Deep green leaves and sturdy, upright stems.',
'Vibrant yellow flowers and steadily developing fruit.',
'No evidence of spots, wilting, or pest damage.'
],
'fast_prevention': [
'Provide consistent water and support with stakes or cages.',
'Feed regularly with a balanced fertilizer designed for tomatoes.'
]
},
'Citrus Citrus Black spot': {
'title': 'Citrus Black Spot',
'short_description': 'A fungal disease primarily affecting the rind of citrus fruits, causing cosmetic blemishes that can make the fruit unmarketable. It is a major concern in citrus-growing regions with summer rainfall.',
'quick_symptoms': [
'Small, hard, black, circular spots on the fruit rind.',
'Lesions can vary in appearance, including virulent spots, false melanose, and freckle spots.',
'Does not typically cause leaf symptoms or tree decline.'
],
'fast_prevention': [
'Apply timely and thorough fungicide sprays to protect the developing fruit.',
'Manage leaf litter on the orchard floor, as it is a source of fungal spores.'
]
},
'Citrus Citrus canker': {
'title': 'Citrus Canker',
'short_description': 'A highly contagious bacterial disease that causes lesions on citrus leaves, stems, and fruit. Severe infections can lead to defoliation, blemished fruit, and premature fruit drop.',
'quick_symptoms': [
'Raised, corky or spongy lesions on leaves, often surrounded by a water-soaked margin and a yellow halo.',
'Lesions are visible on both sides of the leaf.',
'Fruit lesions can become scab-like and may ooze bacteria.'
],
'fast_prevention': [
'Strict quarantine measures and eradication of infected trees are the primary controls.',
'Planting windbreaks to reduce the spread of bacteria by wind-driven rain.'
]
},
'Citrus Citrus greening': {
'title': 'Citrus Greening (HLB)',
'short_description': 'Also known as Huanglongbing (HLB), this is one of the most destructive diseases of citrus worldwide. It is caused by a bacterium that is spread by the Asian citrus psyllid insect.',
'quick_symptoms': [
'Blotchy, asymmetrical yellowing of leaves (mottling) is the most characteristic symptom.',
'Affected trees show stunted growth, sparse yellow foliage, and extensive twig dieback.',
'Fruit is often small, lopsided, poorly colored, and has a bitter taste.'
],
'fast_prevention': [
'Aggressive and coordinated control of the psyllid insect vector.',
'Prompt removal of infected trees to prevent spread to healthy ones.'
]
},
'Citrus Citrus Healthy': {
'title': 'Healthy Citrus Tree',
'short_description': 'This citrus tree is in excellent health, with lush, deep green leaves and no indication of canker, greening, or other diseases. It is well-positioned for healthy fruit production.',
'quick_symptoms': [
'Leaves are a uniform, dark green color without yellowing or mottling.',
'The canopy is dense and shows vigorous new growth.',
'Fruit is developing with good size and color for the season.'
],
'fast_prevention': [
'Monitor for pests, especially the Asian citrus psyllid, and manage them proactively.',
'Provide a balanced fertilizer program tailored for citrus trees.'
]
}
}