Aleksmorshen commited on
Commit
465aa0f
·
verified ·
1 Parent(s): d86b75d

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +27 -6
index.html CHANGED
@@ -310,7 +310,7 @@ select option {
310
  <option value="dynamic action pose">Динамичная поза</option>
311
  </select>
312
  </div>
313
- <!-- NEW ROW 5 - COMPOSITION -->
314
  <div class="form-group">
315
  <label for="shotType">Ракурс/План</label>
316
  <select id="shotType">
@@ -331,7 +331,7 @@ select option {
331
  <option value="neon lights">Неоновый</option>
332
  </select>
333
  </div>
334
- <!-- NEW ROW 6 - TECHNICAL STYLE -->
335
  <div class="form-group">
336
  <label for="style">Эстетика</label>
337
  <select id="style">
@@ -354,9 +354,26 @@ select option {
354
  </select>
355
  </div>
356
 
 
357
  <div class="form-group full-width">
358
- <label for="model_details">Сцена (Одежда, Действие, Локация)</label>
359
- <textarea id="model_details" placeholder="Пример: в черном кожаном плаще и грубых ботинках, идет по дождливой улице ночного Токио, смотрит в камеру"></textarea>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
360
  </div>
361
  </div>
362
 
@@ -480,15 +497,19 @@ async function processAndOpen() {
480
  const hairstyle = document.getElementById('hairstyle').value;
481
  const emotion = document.getElementById('emotion').value;
482
  const pose = document.getElementById('pose').value;
483
- const details = document.getElementById('model_details').value || "in a casual stylish outfit, standing confidently";
 
484
  const light = document.getElementById('light').value;
485
  const camera = document.getElementById('camera').value;
486
 
 
 
 
487
  fullPrompt = `style:: ${style}.
488
  composition:: ${shotType}.
489
  subject:: A photorealistic portrait of a ${age} ${nationality} ${gender}.
490
  model_details:: physique is ${bodyType}, ${hairColor} ${hairstyle}, face expression is ${emotion}, pose is ${pose}.
491
- scene:: ${details}.
492
  technical:: professional photography, ${light}, shot on ${camera}, 8k, sharp focus, hyper-detailed, realistic skin texture with pores, masterpiece.`;
493
 
494
  } else { // Object mode
 
310
  <option value="dynamic action pose">Динамичная поза</option>
311
  </select>
312
  </div>
313
+ <!-- Row 5 - COMPOSITION -->
314
  <div class="form-group">
315
  <label for="shotType">Ракурс/План</label>
316
  <select id="shotType">
 
331
  <option value="neon lights">Неоновый</option>
332
  </select>
333
  </div>
334
+ <!-- Row 6 - TECHNICAL STYLE -->
335
  <div class="form-group">
336
  <label for="style">Эстетика</label>
337
  <select id="style">
 
354
  </select>
355
  </div>
356
 
357
+ <!-- NEW ROW 7 - LOCATION -->
358
  <div class="form-group full-width">
359
+ <label for="location">Локация</label>
360
+ <select id="location">
361
+ <option value="in a clean white seamless studio background">Студия (белый фон)</option>
362
+ <option value="in a creative editorial studio with mirrors and geometric shapes">Студия "Эдиториал" (зеркала)</option>
363
+ <option value="on a rainy night street in Tokyo with neon lights">Улица (ночной Токио, неон)</option>
364
+ <option value="in a minimalist modern interior with concrete walls">Минимализм (лофт, бетон)</option>
365
+ <option value="on a rooftop overlooking the city skyline at sunset">Крыша с видом на город</option>
366
+ <option value="in a luxurious vintage room with classic furniture">Роскошный интерьер (винтаж)</option>
367
+ <option value="in a dense, magical forest with sunbeams filtering through">Природа (сказочный лес)</option>
368
+ <option value="on a beautiful sandy beach during the golden hour">Природа (пляж, закат)</option>
369
+ <option value="in a vibrant, bustling urban market">Город (оживленный рынок)</option>
370
+ <option value="inside a futuristic, sci-fi corridor with glowing lines">Фантастика (коридор)</option>
371
+ </select>
372
+ </div>
373
+
374
+ <div class="form-group full-width">
375
+ <label for="model_details">Одежда и Детали</label>
376
+ <textarea id="model_details" placeholder="Пример: в черном кожаном плаще и грубых ботинках, смотрит в камеру"></textarea>
377
  </div>
378
  </div>
379
 
 
497
  const hairstyle = document.getElementById('hairstyle').value;
498
  const emotion = document.getElementById('emotion').value;
499
  const pose = document.getElementById('pose').value;
500
+ const details = document.getElementById('model_details').value || "in a casual stylish outfit";
501
+ const location = document.getElementById('location').value; // <-- Получаем значение локации
502
  const light = document.getElementById('light').value;
503
  const camera = document.getElementById('camera').value;
504
 
505
+ // Собираем сцену из локации и деталей
506
+ const scene = `${details}, ${location}`;
507
+
508
  fullPrompt = `style:: ${style}.
509
  composition:: ${shotType}.
510
  subject:: A photorealistic portrait of a ${age} ${nationality} ${gender}.
511
  model_details:: physique is ${bodyType}, ${hairColor} ${hairstyle}, face expression is ${emotion}, pose is ${pose}.
512
+ scene:: ${scene}.
513
  technical:: professional photography, ${light}, shot on ${camera}, 8k, sharp focus, hyper-detailed, realistic skin texture with pores, masterpiece.`;
514
 
515
  } else { // Object mode