model package

Submodules

model.admin module

model.apps module

class model.apps.ModelConfig(app_name, app_module)

Bases: AppConfig

default_auto_field = 'django.db.models.BigAutoField'
name = 'model'

model.models module

class model.models.AudioClassificationModel(id, model_id, likes)

Bases: ModelMixin

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
class model.models.ConversationalModel(id, model_id, likes)

Bases: ModelMixin

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
class model.models.DepthEstimationModel(id, model_id, likes)

Bases: ModelMixin

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
class model.models.FeatureExtractionModel(id, model_id, likes)

Bases: ModelMixin

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
class model.models.ImageClassificationModel(id, model_id, likes)

Bases: ModelMixin

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
class model.models.ImageSegmentationModel(id, model_id, likes)

Bases: ModelMixin

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
class model.models.ImageToImageModel(id, model_id, likes)

Bases: ModelMixin

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
class model.models.ImageToTextModel(id, model_id, likes)

Bases: ModelMixin

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
class model.models.ModelMixin(*args, **kwargs)

Bases: Model

Model mixin for common fields.

class Meta

Bases: object

abstract = False
likes

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

model_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

class model.models.ObjectDetectionModel(id, model_id, likes)

Bases: ModelMixin

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
class model.models.TextClassificationModel(id, model_id, likes)

Bases: ModelMixin

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
class model.models.TextGenerationModel(id, model_id, likes)

Bases: ModelMixin

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
class model.models.TextToImageModel(id, model_id, likes)

Bases: ModelMixin

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
class model.models.TextToSpeechModel(id, model_id, likes)

Bases: ModelMixin

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
class model.models.TextToTextModel(id, model_id, likes)

Bases: ModelMixin

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
class model.models.TokenClassificationModel(id, model_id, likes)

Bases: ModelMixin

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
class model.models.TranslationModel(id, model_id, likes)

Bases: ModelMixin

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
class model.models.UnconditionalImageGenerationModel(id, model_id, likes)

Bases: ModelMixin

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>
class model.models.VideoClassificationModel(id, model_id, likes)

Bases: ModelMixin

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <django.db.models.manager.Manager object>

model.tests module

model.urls module

model URL Configuration

model.views module

model.views.add_huggingface_model(request) HttpResponseRedirect | HttpResponsePermanentRedirect

Add object_detection model.

model.views.add_model(request, model_class)

Add model to database.

model.views.get_hf_filter(pipeline_tag) ModelFilter

Get filter for pipeline_tag.

model.views.redirect_with_pipeline_tag(pipeline_tag: str) HttpResponseRedirect | HttpResponsePermanentRedirect

Redirect to search_hugging_face_models with pipeline_tag.

model.views.remove_huggingface_model(request) HttpResponseRedirect | HttpResponsePermanentRedirect

Remove object_detection model.

model.views.remove_model(request, model_class)

Remove model from database.

Render search page.

model.views.search_hugging_face_models(request, model_class, pipeline_tag)

Search models.

model.views.search_huggingface_models(request)

Search object_detection models.