Generador de Etiquetas
Genera automáticamente títulos, descripciones y palabras clave para tus imágenes
{/* Upload Section */}
)}
{/* Results Section */}
{/* History */}
{history.length > 0 && (
e.preventDefault()}
className="border-3 border-dashed border-purple-300 rounded-2xl p-8 bg-white hover:border-purple-500 transition-all cursor-pointer"
onClick={() => document.getElementById('fileInput').click()}
>
{!imagePreview ? (
) : (
)}
{imagePreview && analysis && (
Arrastra una imagen aquí
o haz clic para seleccionar
Vista previa
{loading && (
)}
{analysis && !loading && (
)}
Analizando imagen...
{/* Title */}
{/* Description */}
{/* Keywords */}
{/* Categories */}
)}
{!loading && !analysis && (
Título
{analysis.title}
Descripción
{analysis.description}
Palabras Clave
{analysis.keywords.map((keyword, idx) => (
{keyword}
))}
Categorías
{Object.entries(analysis.categories).map(([category, tags]) => (
))}
{category}:
{tags.map((tag, idx) => (
{tag}
))}
Sube una imagen para comenzar el análisis
Historial de la sesión
{history.map((item, idx) => (
{
setImagePreview(item.preview);
setAnalysis(item.analysis);
}}
className="bg-white rounded-xl p-3 shadow-lg cursor-pointer hover:shadow-xl transition-shadow"
>
))}
{item.timestamp}