Skip to content

Commit

Permalink
Revert addition of commands [WEB-2934]
Browse files Browse the repository at this point in the history
  • Loading branch information
web-dev-trev committed Dec 19, 2024
1 parent 4afd084 commit 7d92693
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 230 deletions.
194 changes: 0 additions & 194 deletions app/Console/Commands/AI/AnalyzeArtwork.php

This file was deleted.

36 changes: 0 additions & 36 deletions app/Services/DescriptionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,40 +49,4 @@ private function buildSummarizationPrompt(?string $aicDescription, array $genera

return $basePrompt;
}

private function buiildAltTextPrompt(?string $aicDescription, array $generatedDescription): string
{
$basePrompt = <<<EOT
You are an art historian writing clear, cohesive visual descriptions of artworks for alt text. Create a description that captures the work's essential visual elements and technical aspects.
Create a unified description that:
Begins with the primary subject matter and composition.
Details the specific materials, methods, and visual styles, such as medium, texture, and notable physical qualities.
Identifies the color of key elements using familiar terms.
Describes spatial relationships, orientation, and scale.
Transcribes embedded text verbatim and in quotation marks.
Avoid:
Using specialized art-historical jargon unless essential.
Making interpretive or emotional statements.
Including redundant metadata or captions already accessible.
Assuming gender, ethnicity, or race unless explicitly stated or visually verifiable.
Starting with phrases like "image of" or "picture of."
Referencing other images or figures.
Please format your response in a string format with a single, cohesive description. For example:
"Two winged baby angels hold a wreath over a person intently reading. The forms are created from loose gestural black lines and washes of gray on yellowed paper."
EOT;

if ($aicDescription) {
$basePrompt .= "\n\nOriginal scholarly description: {$aicDescription}";
}

$basePrompt .= "\nVisual analysis: " . json_encode($generatedDescription);

return $basePrompt;
}
}

0 comments on commit 7d92693

Please sign in to comment.