djai.model.views module

DjAI Model Views.

djai.model.views.model_ui(request: django.http.request.HttpRequest, model_class_or_instance_name_or_uuid: str, ui_type: Literal['dash', 'gradio']) Union[django.http.response.Http404, django.http.response.HttpResponse, django.http.response.HttpResponseRedirect][source]

Launch AI Model class/instance’s Dash or Gradio UI.