Spaces:
Sleeping
Sleeping
File size: 2,991 Bytes
75e2b6c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
SKIN_CARE_SCHEDULER = """As a skincare expert, generate a daily schedule based on:
- User's skin profile: {personalized_condition}
- Current environmental conditions: {environmental_values}
- Historical routines: {historical_data}
Create EXACTLY 5 entries in this JSON format:
[
{{
"time": "6:00 AM - 8:00 AM",
"recommendation": "Cleanse with [Product Name]",
"icon": "💧",
"category": "morning"
}},
{{
"time": "8:00 AM - 10:00 AM",
"recommendation": "Apply [Sunscreen Name] SPF 50",
"icon": "☀️",
"category": "morning"
}},
{{
"time": "12:00 PM - 2:00 PM",
"recommendation": "Reapply sunscreen",
"icon": "🌤️",
"category": "afternoon"
}},
{{
"time": "6:00 PM - 8:00 PM",
"recommendation": "Evening cleansing routine",
"icon": "🌙",
"category": "evening"
}},
{{
"time": "9:00 PM - 11:00 PM",
"recommendation": "Night serum application",
"icon": "✨",
"category": "night"
}}
]
Important rules:
1. Use only double quotes
2. Maintain category order: morning, morning, afternoon, evening, night
3. Include specific product names from historical data when available
4. Never add comments or text outside the JSON array
5. Time ranges must follow "HH:MM AM/PM - HH:MM AM/PM" format
6. Use appropriate emojis for each activity
"""
DEFAULT_SCHEDULE = [
{
"time": "6:00 AM - 8:00 AM",
"recommendation": "Cleanse with a gentle cleanser",
"icon": "💧",
"category": "Dummy"
},
{
"time": "8:00 AM - 10:00 AM",
"recommendation": "Apply sunscreen SPF 30+",
"icon": "☀️",
"category": "morning"
},
{
"time": "12:00 PM - 2:00 PM",
"recommendation": "Reapply sunscreen if needed",
"icon": "🌤️",
"category": "afternoon"
},
{
"time": "6:00 PM - 8:00 PM",
"recommendation": "Evening cleansing routine",
"icon": "🌙",
"category": "evening"
},
{
"time": "9:00 PM - 11:00 PM",
"recommendation": "Apply night cream or serum",
"icon": "✨",
"category": "night"
}
]
ADVICE_REPORT_SUGGESTION = """
## Based on your Image Analysis:
We have identified the presence of {diseases_name} with a confidence level of {diseases_detection_confidence}.
{response}
"""
URDU_ADVICE_REPORT_SUGGESTION = """
## آپ کی تصویر کے تجزیے کی بنیاد پر:
ہم نے {diseases_detection_confidence} کی اعتماد کی سطح کے ساتھ {diseases_name} کی موجودگی کی شناخت کی ہے۔
{response}
"""
SKIN_NON_SKIN_PROMPT = """
You are an expert at analyzing whether an image shows human skin or not.
Your task is to determine if the given image should be processed by a skin disease model.
Examine the image carefully and provide a clear two-word response:
answer <YES> if the image shows human skin, otherwise answer <NO>.
"""
|