fixed: ModuleNotFoundError: No module named 'clarifai.auth' (#14215)

Updated the clarifai imports 

fixed: #14175 

@efriis 
@baskaryan
This commit is contained in:
umair mehmood 2023-12-05 00:53:34 +05:00 committed by GitHub
parent ca8a022cd9
commit 8504ec56e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -64,8 +64,8 @@ class ClarifaiEmbeddings(BaseModel, Embeddings):
raise ValueError("Please provide a model_id.")
try:
from clarifai.auth.helper import ClarifaiAuthHelper
from clarifai.client import create_stub
from clarifai.client.auth.helper import ClarifaiAuthHelper
except ImportError:
raise ImportError(
"Could not import clarifai python package. "

View File

@ -71,8 +71,8 @@ class Clarifai(LLM):
raise ValueError("Please provide a model_id.")
try:
from clarifai.auth.helper import ClarifaiAuthHelper
from clarifai.client import create_stub
from clarifai.client.auth.helper import ClarifaiAuthHelper
except ImportError:
raise ImportError(
"Could not import clarifai python package. "