(extract-metadata-from-filename filename)Extracts metadata from a filename assumed to be in the format: 'pose-{prompt-slug}-{style}-{timestamp}.jpg'.
Returns a map containing the extracted prompt-slug, style, and timestamp, or nil if the filename doesn't match the expected format.
Extracts metadata from a filename assumed to be in the format:
'pose-{prompt-slug}-{style}-{timestamp}.jpg'.
Returns a map containing the extracted prompt-slug, style, and timestamp, or nil if the filename doesn't match the expected format.(generate-pose-url {:keys [prompt style num-images]
:or {style "realistic" num-images 1}})Generates a Supermaker AI Pose Generator URL based on provided parameters.
Takes a map of parameters including:
:prompt (required): The text prompt for the pose.:style (optional): The artistic style (e.g., 'realistic', 'cartoon'). Defaults to 'realistic'.:num-images (optional): The number of images to generate. Defaults to 1.Returns a string representing the generated URL, or nil if the prompt is missing.
Generates a Supermaker AI Pose Generator URL based on provided parameters. Takes a map of parameters including: - `:prompt` (required): The text prompt for the pose. - `:style` (optional): The artistic style (e.g., 'realistic', 'cartoon'). Defaults to 'realistic'. - `:num-images` (optional): The number of images to generate. Defaults to 1. Returns a string representing the generated URL, or nil if the prompt is missing.
(process-mock-pose-data pose-data)Processes a list of mock pose data maps. Each map is expected to have a :prompt key.
This function adds a :processed? key to each map, set to true, and converts the :prompt to uppercase.
Returns a new list of processed pose data maps.
Processes a list of mock pose data maps. Each map is expected to have a :prompt key. This function adds a :processed? key to each map, set to true, and converts the :prompt to uppercase. Returns a new list of processed pose data maps.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |