You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-19Lines changed: 13 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -82,29 +82,23 @@ Some models, like [methexis-inc/img2prompt](https://replicate.com/methexis-inc/i
82
82
To run a model that takes a fileinput, pass a URL to a publicly accessible file. Or, for smaller files (<10MB), you can convert file data into a base64-encoded data URIandpass that directly:
83
83
84
84
```
85
-
# Run andreasjansson/blip-2:f677695e by providing a base64 encoded image from local file system
85
+
# Run andreasjansson/blip-2:f677695e by providing an image from local file system which is base64 encoded by files.py
86
86
import replicate
87
87
import base64
88
88
89
-
# Download `gg_bridge.jpeg` from https://replicate.delivery/pbxt/IJEPmgAlL2zNBNDoRRKFegTEcxnlRhoQxlNjPHSZEy0pSIKn/gg_bridge.jpeg
90
-
# This reads example image `gg_bridge.jpeg` from current working directory into a buffer
89
+
# This reads an example image `gg_bridge.jpeg` from current working directory into a buffer and into the prediction request
0 commit comments