djai.model.models.cloud_ai_svc package¶
DjAI Cloud AI Service model classes.
- class djai.model.models.cloud_ai_svc.CloudAIService(*args, **kwargs)[source]¶
Bases:
djai.model.models.base.AIModel
DjAI Cloud AI Service model class.
- exception DoesNotExist¶
- exception MultipleObjectsReturned¶
Bases:
djai.model.models.base.AIModel.MultipleObjectsReturned
- aimodel_ptr¶
Accessor to the related object on the forward side of a one-to-one relation.
In the example:
class Restaurant(Model): place = OneToOneField(Place, related_name='restaurant')
Restaurant.place
is aForwardOneToOneDescriptor
instance.
- aimodel_ptr_id¶
- google_translate¶
Accessor to the related object on the reverse side of a one-to-one relation.
In the example:
class Restaurant(Model): place = OneToOneField(Place, related_name='restaurant')
Place.restaurant
is aReverseOneToOneDescriptor
instance.
- polymorphic_primary_key_name = 'uuid'¶
- polymorphic_super_sub_accessors_replaced = False¶
- class djai.model.models.cloud_ai_svc.GoogleTranslate(*args, **kwargs)[source]¶
Bases:
djai.model.models.cloud_ai_svc.base.CloudAIService
Google Translate Service.
- exception DoesNotExist¶
Bases:
djai.model.models.cloud_ai_svc.base.CloudAIService.DoesNotExist
- exception MultipleObjectsReturned¶
Bases:
djai.model.models.cloud_ai_svc.base.CloudAIService.MultipleObjectsReturned
- client = None¶
- cloudaiservice_ptr¶
Accessor to the related object on the forward side of a one-to-one relation.
In the example:
class Restaurant(Model): place = OneToOneField(Place, related_name='restaurant')
Restaurant.place
is aForwardOneToOneDescriptor
instance.
- cloudaiservice_ptr_id¶
- gradio_ui = Gradio Interface for: predict ----------------------------- inputs: |-Textbox(label="Text to Translate") |-Dropdown(label="Source Language") |-Dropdown(label="Destination Language") outputs: |-Textbox(label="Translated Text")¶
- polymorphic_primary_key_name = 'uuid'¶
- polymorphic_super_sub_accessors_replaced = False¶
Subpackages¶
- djai.model.models.cloud_ai_svc.amazon package
- djai.model.models.cloud_ai_svc.google package
- djai.model.models.cloud_ai_svc.hugging_face package
- djai.model.models.cloud_ai_svc.ibm_watson package
- djai.model.models.cloud_ai_svc.meta package
- djai.model.models.cloud_ai_svc.microsoft package
- djai.model.models.cloud_ai_svc.wolfram_alpha package