Skip to content

Commit

Permalink
feat(ui): display number of available models for installation (#2298)
Browse files Browse the repository at this point in the history
Signed-off-by: Ettore Di Giacinto <[email protected]>
  • Loading branch information
mudler authored May 12, 2024
1 parent 310b217 commit 9d8c705
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/http/routes/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func RegisterUIRoutes(app *fiber.App,
"Repositories": appConfig.Galleries,
"AllTags": tags,
"ProcessingModels": processingModelsData,
"AvailableModels": len(models),
"TaskTypes": taskTypes,
// "ApplicationConfig": appConfig,
}
Expand Down
2 changes: 1 addition & 1 deletion core/http/views/models.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<div class="models mt-12">
<h2 class="text-center text-3xl font-semibold text-gray-100">
🖼️ Available models from <i>{{ len .Repositories }}</i> repositories <a href="https://localai.io/models/" target="_blank" >
🖼️ Available {{.AvailableModels}} models from <i>{{ len .Repositories }}</i> repositories <a href="https://localai.io/models/" target="_blank" >
<i class="fas fa-circle-info pr-2"></i>
</a></h2>

Expand Down

0 comments on commit 9d8c705

Please sign in to comment.