Skip to content

Commit afb9203

Browse files
committed
Fix runtime error with incorrect variable arguments
This commit fixes a bug introduced by requiring `use_file_output` to be a keyword parameter.
1 parent 1ff0890 commit afb9203

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

replicate/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def run(
171171
Run a model and wait for its output.
172172
"""
173173

174-
return run(self, ref, input, use_file_output, **params)
174+
return run(self, ref, input, use_file_output=use_file_output, **params)
175175

176176
async def async_run(
177177
self,
@@ -184,7 +184,7 @@ async def async_run(
184184
Run a model and wait for its output asynchronously.
185185
"""
186186

187-
return await async_run(self, ref, input, use_file_output, **params)
187+
return await async_run(self, ref, input, use_file_output=use_file_output, **params)
188188

189189
def stream(
190190
self,

0 commit comments

Comments
 (0)