From 4d736d66032e90807c887706b36699a41d158921 Mon Sep 17 00:00:00 2001 From: Reigen Date: Thu, 27 Jun 2024 11:00:58 -0700 Subject: [PATCH 1/2] Include specific base64 mention on file input Adds mention to README about base64 encoded data URL for file input for to improve RAG support assistant responses. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a547292f..96e7523d 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,7 @@ Some models, like [andreasjansson/blip-2](https://replicate.com/andreasjansson/b To run a model that takes a file input, pass a URL to a publicly accessible file. Or, for smaller files (<10MB), you can pass a file handle directly. +If you don't use the built-in file handler, you'll need to create a base64 encoded data URL of the file input. ```python >>> output = replicate.run( From 8405051658a399fc0a40a0aeeb8b8094a6faab0a Mon Sep 17 00:00:00 2001 From: Reigen Date: Thu, 27 Jun 2024 11:04:15 -0700 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 96e7523d..908ee5c2 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ Some models, like [andreasjansson/blip-2](https://replicate.com/andreasjansson/b To run a model that takes a file input, pass a URL to a publicly accessible file. Or, for smaller files (<10MB), you can pass a file handle directly. -If you don't use the built-in file handler, you'll need to create a base64 encoded data URL of the file input. +If you don't use the built-in file handler but want to pass a file handle directly, you'll need to create a base64 encoded data URL of the file input. ```python >>> output = replicate.run(