From a87030b88b4fb1d9e30f01c8b809c0f69d728e4c Mon Sep 17 00:00:00 2001 From: Dhravya Date: Sun, 16 Jun 2024 18:24:27 -0500 Subject: [PATCH] OCR try --- apps/cf-ai-backend/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/cf-ai-backend/src/index.ts b/apps/cf-ai-backend/src/index.ts index 94351b70..69edbbe7 100644 --- a/apps/cf-ai-backend/src/index.ts +++ b/apps/cf-ai-backend/src/index.ts @@ -110,7 +110,7 @@ app.post( const input = { image: [...new Uint8Array(buffer)], prompt: - "What's in this image? caption everything you see in great detail", + "What's in this image? caption everything you see in great detail. If it has text, do an OCR and extract all of it.", max_tokens: 1024, }; const response = await c.env.AI.run(