File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1212
1313
1414class DialogTag :
15- def __init__ (self , model_name ):
15+ def __init__ (self , model_name , model_path = None ):
1616
1717 self .__model_name = model_name
1818
1919 self .__lib_path = f"{ str (Path .home ())} " + model_location ["MODEL" ]
20- self .__model_path = os .path .join (self .__lib_path , self .__model_name )
21- self .__label_mapping_path = os . path . join ( self .__lib_path , self . __model_name ) + model_location ["label_mapping" ]
20+ self .__model_path = model_path or os .path .join (self .__lib_path , self .__model_name )
21+ self .__label_mapping_path = self .__model_path + model_location ["label_mapping" ]
2222
2323 # print(self.__lib_path, self.__model_path, self.__label_mapping_path)
2424 path_exists = os .path .exists (self .__model_path )
You can’t perform that action at this time.
0 commit comments