mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-27 22:15:00 +00:00
feat(ui): complete design overhaul (#4942)
This PR changes entirely the UI look and feeling. It updates all sections and makes it also mobile-ready. Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
d732e261a4
commit
6b46c52789
17 changed files with 1573 additions and 978 deletions
|
@ -173,7 +173,6 @@ func RegisterUIRoutes(app *fiber.App,
|
|||
}
|
||||
|
||||
if page != "" {
|
||||
log.Debug().Msgf("page : %+v\n", page)
|
||||
// return a subset of the models
|
||||
pageNum, err := strconv.Atoi(page)
|
||||
if err != nil {
|
||||
|
@ -193,7 +192,6 @@ func RegisterUIRoutes(app *fiber.App,
|
|||
|
||||
models = models.Paginate(pageNum, itemsNum)
|
||||
|
||||
log.Debug().Msgf("number of models : %+v\n", len(models))
|
||||
prevPage := pageNum - 1
|
||||
nextPage := pageNum + 1
|
||||
if prevPage < 1 {
|
||||
|
@ -552,7 +550,7 @@ func RegisterUIRoutes(app *fiber.App,
|
|||
title := "LocalAI - Generate audio"
|
||||
|
||||
for _, b := range backendConfigs {
|
||||
if b.HasUsecases(config.FLAG_CHAT) {
|
||||
if b.HasUsecases(config.FLAG_TTS) {
|
||||
modelThatCanBeUsed = b.Name
|
||||
title = "LocalAI - Generate audio with " + modelThatCanBeUsed
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue