Regarding API

I would like to try the following model published by someone else.

I can test it on the web, but the following code gives me an error message saying “‘NoneType’ object has no attribute ‘predict’” and I cannot run it.

from roboflow import Roboflow
rf = Roboflow(api_key=myapi_key)
project = rf.workspace().project(“custom-road-detection”)
model = project.version(1).model
print(model.predict(“your_image.jpg”).json())
model.predict(“your_image.jpg”).save(“prediction.jpg”)

Can I use APIs published by others?
Please tell me how to resolve the error.

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