Replicate model issue

when i deploy an app which uses replicate model
from https://replicate.com/
there is always an error

Jul 19 12:38:38 AM File “/opt/render/project/src/.venv/lib/python3.7/site-packages/replicate/prediction.py”, line 85, in create
Jul 19 12:38:38 AM return self.prepare_model(obj)
Jul 19 12:38:38 AM File “/opt/render/project/src/.venv/lib/python3.7/site-packages/replicate/collection.py”, line 33, in prepare_model
Jul 19 12:38:38 AM model = self.model(**attrs)
Jul 19 12:38:38 AM File “/opt/render/project/src/.venv/lib/python3.7/site-packages/pydantic/main.py”, line 150, in init
Jul 19 12:38:38 AM pydantic_self.pydantic_validator.validate_python(data, self_instance=pydantic_self)
Jul 19 12:38:38 AM pydantic_core._pydantic_core.ValidationError: 3 validation errors for Prediction
Jul 19 12:38:38 AM output
Jul 19 12:38:38 AM Field required [type=missing, input_value={‘id’: ‘dur3sttb6eij4o754…ttb6eij4o754wrfqsvvve’}}, input_type=dict]

Hi there,

From the information here, it’s hard to say the exact issue. I don’t think it is caused specifically by using Render. I’m unfamiliar with Replicate or Pydantic, but have you sent the wrong input to your service? Field required [type=missing, input_value={‘id’: ‘dur3sttb6eij4o754…ttb6eij4o754wrfqsvvve’}}, input_type=dict] there looks to be an additional } on the input value, but this just may be an issue with the logging.

Regards.

Keith
Render Support, UTC+10 :australia:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.