Clarifai / clarifai-python-grpc

Clarifai gRPC Python API client
https://docs.clarifai.com
Other
56 stars 20 forks source link

Add text models to tests #63

Closed ghost closed 2 years ago

ghost commented 2 years ago

Expanding the list of public models to test on. (text as input)

nick-clarifai commented 2 years ago

Models appear to be missing in dev/staging. distilbart-cnn-12-6 wasn't found in either model (first one tried by pytest)

ghost commented 2 years ago

@nick-clarifai that's odd. here's what I see from dev and staging

api_dev=> select id from models where user_unique_id='distilbart-cnn-12-6';
                id                
----------------------------------
 184b06abb52c4813a6f4f360bc6eca21
(1 row)

and staging

api_staging=> select id from models where user_unique_id='distilbart-cnn-12-6';
                id                
----------------------------------
 f0c09fdc7c7e4168a3df9950559628ac
(1 row)
Cjkjvfnby commented 2 years ago

@chungisaac , I am not sure which id we currently use for the model, we have a bunch of them.

https://github.com/Clarifai/clarifai/blob/master/go/src/clarifai/db/dbtypes/model.go#L24

ghost commented 2 years ago

@Cjkjvfnby I've tried on Postman: PostModelOutputs uses user_unique_id and v2_user_unique_id

nick-clarifai commented 2 years ago

Hmm I tried doing PostModelOutputs on distilbart-cnn-12-6 in dev on Postman and it said model not found. I also can't seem to find the model when I search for it in dev portal. Maybe resource syncing was incomplete? I'm not sure if the db entry gives any more clues as to why we're not seeing it.