Skip to content

Commit

Permalink
Fix runtime error with incorrect variable arguments
Browse files Browse the repository at this point in the history
This commit fixes a bug introduced by requiring `use_file_output` to
be a keyword parameter.
  • Loading branch information
aron authored and zeke committed Oct 9, 2024
1 parent 2ec0c52 commit 5c7f210
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions replicate/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def run(
Run a model and wait for its output.
"""

return run(self, ref, input, use_file_output, **params)
return run(self, ref, input, use_file_output=use_file_output, **params)

async def async_run(
self,
Expand All @@ -184,7 +184,7 @@ async def async_run(
Run a model and wait for its output asynchronously.
"""

return await async_run(self, ref, input, use_file_output, **params)
return await async_run(self, ref, input, use_file_output=use_file_output, **params)

def stream(
self,
Expand Down

0 comments on commit 5c7f210

Please sign in to comment.