Skip to content

Commit 31aa7ed

Browse files
chore: remove custom code
1 parent 002b758 commit 31aa7ed

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/replicate/_client.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -228,24 +228,6 @@ def _make_status_error(
228228
if response.status_code >= 500:
229229
return _exceptions.InternalServerError(err_msg, response=response, body=body)
230230
return APIStatusError(err_msg, response=response, body=body)
231-
232-
def run(
233-
self,
234-
ref: str,
235-
input: dict[str, Any] | None = None,
236-
*,
237-
use_file_output: bool = True,
238-
) -> Any:
239-
"""
240-
Example custom method
241-
242-
"""
243-
244-
# there is some custom logic like run you can embed
245-
# e.g. version, owner, name, version_id = identifier._resolve(ref)
246-
prediction = self.predictions.create(version = "placeholder", input=input)
247-
248-
return prediction.output
249231

250232

251233
class AsyncReplicateClient(AsyncAPIClient):
@@ -430,7 +412,6 @@ def _make_status_error(
430412
return APIStatusError(err_msg, response=response, body=body)
431413

432414

433-
434415
class ReplicateClientWithRawResponse:
435416
def __init__(self, client: ReplicateClient) -> None:
436417
self.collections = collections.CollectionsResourceWithRawResponse(client.collections)

0 commit comments

Comments
 (0)