@page "/site/{SiteId:int}/generate" @using BLAIzor.Interfaces @using BLAIzor.Models @using BLAIzor.Services @using System.Text.RegularExpressions @using SixLabors.ImageSharp @using SixLabors.ImageSharp.Processing @inject HttpClient Http @inject ContentEditorAIService contentEditorAIService @inject ContentEditorService contentEditorService @inject NavigationManager Navigation @inject ReplicateService ReplicateService @inject IHttpClientFactory HttpClientFactory @inject IBrightDataService BrightDataService
@message
} @if (GeneratedItems.Any()) {Generating pages... please wait.
@*Please review the generated content and the images. You are free to modify the text, but please don't remove photo tags, they are handled automatically. Please approve the images you like. You can also regenerate, and select photos from your device.
@slot.Description
*@ @if (!string.IsNullOrEmpty(slot.ImageUrl)) {Photo_slot_@(SelectedItem.PhotoSlots.IndexOf(slot) + 1)
No photo suggestions yet.
}Click the button below to generate your site's pages based on its description.