-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send service files like normal derivative streams, and foward using O…
…penAI base64
- Loading branch information
Showing
4 changed files
with
20 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
ARG TAG=main | ||
ARG DOCKER_REPOSITORY=lehighlts | ||
FROM islandora/imagemagick:alpine-3.20.2-imagemagick-7.1.1.36-r0 AS imagemagick | ||
FROM ${DOCKER_REPOSITORY}/scyllaridae:${TAG} | ||
|
||
SHELL ["/bin/ash", "-o", "pipefail", "-c"] | ||
|
||
# hadolint ignore=DL3018 | ||
RUN --mount=type=bind,from=imagemagick,source=/packages,target=/packages \ | ||
--mount=type=bind,from=imagemagick,source=/etc/apk/keys,target=/etc/apk/keys \ | ||
apk add --no-cache /packages/imagemagick-*.apk | ||
|
||
RUN magick -list format | grep "JPEG-2000" | ||
|
||
ENV OPENAI_MODEL=gpt-4o-mini \ | ||
PROMPT="Transcribe this image that contains handwritten text. Include all text you see in the image. In your response, say absolutely nothing except the text from the image" \ | ||
MAX_TOKENS=300 | ||
|
||
COPY scyllaridae.yml /app/scyllaridae.yml | ||
COPY cmd.sh /app/cmd.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,3 @@ allowedMimeTypes: | |
cmdByMimeType: | ||
default: | ||
cmd: /app/cmd.sh | ||
args: | ||
- "%source-uri" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters