Spaces:
Runtime error
Runtime error
Upload design_styles.py
Browse files- design_styles.py +78 -0
design_styles.py
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Стили дизайна и их промпты
|
| 2 |
+
DESIGN_STYLES = {
|
| 3 |
+
"Современный минимализм": {
|
| 4 |
+
"prompt": "modern minimalist interior, clean lines, neutral colors, simple furniture, lots of natural light, white walls, wooden floors",
|
| 5 |
+
"negative": "cluttered, busy, ornate, dark, vintage",
|
| 6 |
+
"strength": 0.8
|
| 7 |
+
},
|
| 8 |
+
"Скандинавский": {
|
| 9 |
+
"prompt": "scandinavian interior design, hygge, cozy, white and grey palette, natural wood, soft textiles, plants, simple decor",
|
| 10 |
+
"negative": "industrial, dark colors, metal, concrete",
|
| 11 |
+
"strength": 0.75
|
| 12 |
+
},
|
| 13 |
+
"Индустриальный": {
|
| 14 |
+
"prompt": "industrial loft interior, exposed brick walls, metal fixtures, concrete floors, dark colors, vintage furniture, edison bulbs",
|
| 15 |
+
"negative": "pastel colors, floral patterns, traditional",
|
| 16 |
+
"strength": 0.85
|
| 17 |
+
},
|
| 18 |
+
"Бохо": {
|
| 19 |
+
"prompt": "bohemian boho interior, colorful textiles, plants, macrame, ethnic patterns, warm colors, vintage furniture, cozy atmosphere",
|
| 20 |
+
"negative": "minimalist, modern, cold, empty",
|
| 21 |
+
"strength": 0.7
|
| 22 |
+
},
|
| 23 |
+
"Японский": {
|
| 24 |
+
"prompt": "japanese zen interior, tatami mats, shoji screens, low furniture, natural materials, minimalist, bamboo, neutral colors",
|
| 25 |
+
"negative": "western, cluttered, bright colors, heavy furniture",
|
| 26 |
+
"strength": 0.8
|
| 27 |
+
},
|
| 28 |
+
"Ар-деко": {
|
| 29 |
+
"prompt": "art deco interior, luxury, gold accents, geometric patterns, velvet furniture, dark woods, mirrors, glamorous lighting",
|
| 30 |
+
"negative": "rustic, simple, minimalist, cheap materials",
|
| 31 |
+
"strength": 0.75
|
| 32 |
+
},
|
| 33 |
+
"Прованс": {
|
| 34 |
+
"prompt": "french provence interior, rustic, lavender colors, vintage furniture, floral patterns, distressed wood, soft pastels",
|
| 35 |
+
"negative": "modern, industrial, dark, minimalist",
|
| 36 |
+
"strength": 0.7
|
| 37 |
+
},
|
| 38 |
+
"Хай-тек": {
|
| 39 |
+
"prompt": "high-tech futuristic interior, smart home, led lighting, glass and metal, modern gadgets, clean surfaces, monochrome",
|
| 40 |
+
"negative": "vintage, rustic, warm colors, traditional",
|
| 41 |
+
"strength": 0.85
|
| 42 |
+
}
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
# Элементы для изменения
|
| 46 |
+
ROOM_ELEMENTS = {
|
| 47 |
+
"Стены": {
|
| 48 |
+
"prompt_add": "painted walls, wallpaper, accent wall",
|
| 49 |
+
"colors": ["белый", "серый", "бежевый", "темно-синий", "зеленый", "терракотовый"]
|
| 50 |
+
},
|
| 51 |
+
"Пол": {
|
| 52 |
+
"prompt_add": "flooring, floor material",
|
| 53 |
+
"types": ["паркет", "ламинат", "плитка", "ковролин", "бетон", "мрамор"]
|
| 54 |
+
},
|
| 55 |
+
"Освещение": {
|
| 56 |
+
"prompt_add": "lighting fixtures, lamps, natural light",
|
| 57 |
+
"types": ["люстра", "споты", "торшеры", "LED подсветка", "естественный свет"]
|
| 58 |
+
},
|
| 59 |
+
"Мебель": {
|
| 60 |
+
"prompt_add": "furniture, sofa, chairs, table",
|
| 61 |
+
"styles": ["современная", "винтаж", "минималистичная", "классическая"]
|
| 62 |
+
},
|
| 63 |
+
"Декор": {
|
| 64 |
+
"prompt_add": "decorations, plants, artwork, accessories",
|
| 65 |
+
"types": ["растения", "картины", "текстиль", "минимальный", "богатый"]
|
| 66 |
+
}
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
# Типы комнат
|
| 70 |
+
ROOM_TYPES = {
|
| 71 |
+
"Гостиная": "living room",
|
| 72 |
+
"Спальня": "bedroom",
|
| 73 |
+
"Кухня": "kitchen",
|
| 74 |
+
"Ванная": "bathroom",
|
| 75 |
+
"Кабинет": "home office",
|
| 76 |
+
"Детская": "kids room",
|
| 77 |
+
"Прихожая": "hallway"
|
| 78 |
+
}
|