From 8e02f3b6a370092fff129b9690c96be9e370ceab Mon Sep 17 00:00:00 2001 From: Austin Walker Date: Mon, 13 Nov 2023 16:35:06 -0500 Subject: [PATCH] chore: fix example in readme for updated Files object Closes #11 The autogenerated code has made this object less verbose. We need to update this in the example. --- README.md | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 878a76e0..73b95a86 100755 --- a/README.md +++ b/README.md @@ -39,9 +39,9 @@ file = open(filename, "rb") req = shared.PartitionParameters( # Note that this currently only supports a single file - files=shared.PartitionParametersFiles( + files=shared.Files( content=file.read(), - files=filename, + file_name=filename, ), # Other partition params strategy="fast", @@ -83,19 +83,10 @@ s = unstructured_client.UnstructuredClient( - - - - - - - - -