2024-04-23 07:22:58 +00:00
|
|
|
package routes
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"html/template"
|
2024-05-06 23:17:07 +00:00
|
|
|
"sort"
|
2024-04-23 07:22:58 +00:00
|
|
|
"strings"
|
|
|
|
|
2024-06-23 08:24:36 +00:00
|
|
|
"github.com/mudler/LocalAI/core/config"
|
2024-06-24 15:32:12 +00:00
|
|
|
"github.com/mudler/LocalAI/core/gallery"
|
2024-06-23 08:24:36 +00:00
|
|
|
"github.com/mudler/LocalAI/core/http/elements"
|
|
|
|
"github.com/mudler/LocalAI/core/http/endpoints/localai"
|
2024-07-08 20:04:06 +00:00
|
|
|
"github.com/mudler/LocalAI/core/p2p"
|
2024-06-23 08:24:36 +00:00
|
|
|
"github.com/mudler/LocalAI/core/services"
|
|
|
|
"github.com/mudler/LocalAI/internal"
|
|
|
|
"github.com/mudler/LocalAI/pkg/model"
|
|
|
|
"github.com/mudler/LocalAI/pkg/xsync"
|
2024-05-08 17:34:33 +00:00
|
|
|
"github.com/rs/zerolog/log"
|
2024-04-27 07:08:33 +00:00
|
|
|
|
2024-04-23 07:22:58 +00:00
|
|
|
"github.com/gofiber/fiber/v2"
|
|
|
|
"github.com/google/uuid"
|
|
|
|
)
|
|
|
|
|
|
|
|
func RegisterUIRoutes(app *fiber.App,
|
|
|
|
cl *config.BackendConfigLoader,
|
|
|
|
ml *model.ModelLoader,
|
|
|
|
appConfig *config.ApplicationConfig,
|
|
|
|
galleryService *services.GalleryService,
|
|
|
|
auth func(*fiber.Ctx) error) {
|
|
|
|
|
2024-04-27 07:08:33 +00:00
|
|
|
// keeps the state of models that are being installed from the UI
|
2024-05-07 22:42:34 +00:00
|
|
|
var processingModels = xsync.NewSyncedMap[string, string]()
|
|
|
|
|
|
|
|
// modelStatus returns the current status of the models being processed (installation or deletion)
|
|
|
|
// it is called asynchonously from the UI
|
|
|
|
modelStatus := func() (map[string]string, map[string]string) {
|
|
|
|
processingModelsData := processingModels.Map()
|
|
|
|
|
|
|
|
taskTypes := map[string]string{}
|
|
|
|
|
|
|
|
for k, v := range processingModelsData {
|
|
|
|
status := galleryService.GetStatus(v)
|
|
|
|
taskTypes[k] = "Installation"
|
|
|
|
if status != nil && status.Deletion {
|
|
|
|
taskTypes[k] = "Deletion"
|
|
|
|
} else if status == nil {
|
|
|
|
taskTypes[k] = "Waiting"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return processingModelsData, taskTypes
|
|
|
|
}
|
|
|
|
|
|
|
|
app.Get("/", auth, localai.WelcomeEndpoint(appConfig, cl, ml, modelStatus))
|
2024-04-27 07:08:33 +00:00
|
|
|
|
2024-07-08 20:04:06 +00:00
|
|
|
if p2p.IsP2PEnabled() {
|
|
|
|
app.Get("/p2p", auth, func(c *fiber.Ctx) error {
|
|
|
|
summary := fiber.Map{
|
|
|
|
"Title": "LocalAI - P2P dashboard",
|
|
|
|
"Version": internal.PrintableVersion(),
|
|
|
|
//"Nodes": p2p.GetAvailableNodes(""),
|
|
|
|
//"FederatedNodes": p2p.GetAvailableNodes(p2p.FederatedID),
|
|
|
|
"IsP2PEnabled": p2p.IsP2PEnabled(),
|
|
|
|
"P2PToken": appConfig.P2PToken,
|
|
|
|
}
|
|
|
|
|
|
|
|
// Render index
|
|
|
|
return c.Render("views/p2p", summary)
|
|
|
|
})
|
|
|
|
|
|
|
|
/* show nodes live! */
|
|
|
|
app.Get("/p2p/ui/workers", auth, func(c *fiber.Ctx) error {
|
|
|
|
return c.SendString(elements.P2PNodeBoxes(p2p.GetAvailableNodes("")))
|
|
|
|
})
|
|
|
|
app.Get("/p2p/ui/workers-federation", auth, func(c *fiber.Ctx) error {
|
|
|
|
return c.SendString(elements.P2PNodeBoxes(p2p.GetAvailableNodes(p2p.FederatedID)))
|
|
|
|
})
|
|
|
|
|
|
|
|
app.Get("/p2p/ui/workers-stats", auth, func(c *fiber.Ctx) error {
|
|
|
|
return c.SendString(elements.P2PNodeStats(p2p.GetAvailableNodes("")))
|
|
|
|
})
|
|
|
|
app.Get("/p2p/ui/workers-federation-stats", auth, func(c *fiber.Ctx) error {
|
|
|
|
return c.SendString(elements.P2PNodeStats(p2p.GetAvailableNodes(p2p.FederatedID)))
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-04-27 07:08:33 +00:00
|
|
|
// Show the Models page (all models)
|
2024-04-23 07:22:58 +00:00
|
|
|
app.Get("/browse", auth, func(c *fiber.Ctx) error {
|
2024-05-07 22:42:34 +00:00
|
|
|
term := c.Query("term")
|
|
|
|
|
2024-04-23 07:22:58 +00:00
|
|
|
models, _ := gallery.AvailableGalleryModels(appConfig.Galleries, appConfig.ModelPath)
|
|
|
|
|
2024-05-06 23:17:07 +00:00
|
|
|
// Get all available tags
|
|
|
|
allTags := map[string]struct{}{}
|
|
|
|
tags := []string{}
|
|
|
|
for _, m := range models {
|
|
|
|
for _, t := range m.Tags {
|
|
|
|
allTags[t] = struct{}{}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for t := range allTags {
|
|
|
|
tags = append(tags, t)
|
|
|
|
}
|
|
|
|
sort.Strings(tags)
|
2024-05-07 22:42:34 +00:00
|
|
|
|
|
|
|
if term != "" {
|
|
|
|
models = gallery.GalleryModels(models).Search(term)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Get model statuses
|
|
|
|
processingModelsData, taskTypes := modelStatus()
|
|
|
|
|
2024-04-23 07:22:58 +00:00
|
|
|
summary := fiber.Map{
|
2024-05-07 22:42:34 +00:00
|
|
|
"Title": "LocalAI - Models",
|
|
|
|
"Version": internal.PrintableVersion(),
|
|
|
|
"Models": template.HTML(elements.ListModels(models, processingModels, galleryService)),
|
|
|
|
"Repositories": appConfig.Galleries,
|
|
|
|
"AllTags": tags,
|
|
|
|
"ProcessingModels": processingModelsData,
|
2024-05-12 12:24:36 +00:00
|
|
|
"AvailableModels": len(models),
|
2024-07-08 20:04:06 +00:00
|
|
|
"IsP2PEnabled": p2p.IsP2PEnabled(),
|
|
|
|
|
|
|
|
"TaskTypes": taskTypes,
|
2024-04-23 07:22:58 +00:00
|
|
|
// "ApplicationConfig": appConfig,
|
|
|
|
}
|
|
|
|
|
|
|
|
// Render index
|
|
|
|
return c.Render("views/models", summary)
|
|
|
|
})
|
|
|
|
|
2024-04-27 07:08:33 +00:00
|
|
|
// Show the models, filtered from the user input
|
2024-04-23 07:22:58 +00:00
|
|
|
// https://htmx.org/examples/active-search/
|
|
|
|
app.Post("/browse/search/models", auth, func(c *fiber.Ctx) error {
|
|
|
|
form := struct {
|
|
|
|
Search string `form:"search"`
|
|
|
|
}{}
|
|
|
|
if err := c.BodyParser(&form); err != nil {
|
|
|
|
return c.Status(fiber.StatusBadRequest).SendString(err.Error())
|
|
|
|
}
|
|
|
|
|
|
|
|
models, _ := gallery.AvailableGalleryModels(appConfig.Galleries, appConfig.ModelPath)
|
|
|
|
|
2024-05-07 22:42:34 +00:00
|
|
|
return c.SendString(elements.ListModels(gallery.GalleryModels(models).Search(form.Search), processingModels, galleryService))
|
2024-04-23 07:22:58 +00:00
|
|
|
})
|
|
|
|
|
2024-04-28 21:42:46 +00:00
|
|
|
/*
|
|
|
|
|
|
|
|
Install routes
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2024-04-27 07:08:33 +00:00
|
|
|
// This route is used when the "Install" button is pressed, we submit here a new job to the gallery service
|
2024-04-23 07:22:58 +00:00
|
|
|
// https://htmx.org/examples/progress-bar/
|
|
|
|
app.Post("/browse/install/model/:id", auth, func(c *fiber.Ctx) error {
|
2024-04-27 07:08:33 +00:00
|
|
|
galleryID := strings.Clone(c.Params("id")) // note: strings.Clone is required for multiple requests!
|
2024-05-08 17:34:33 +00:00
|
|
|
log.Debug().Msgf("UI job submitted to install : %+v\n", galleryID)
|
2024-04-23 07:22:58 +00:00
|
|
|
|
|
|
|
id, err := uuid.NewUUID()
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
|
|
|
uid := id.String()
|
|
|
|
|
2024-05-07 22:42:34 +00:00
|
|
|
processingModels.Set(galleryID, uid)
|
2024-04-27 07:08:33 +00:00
|
|
|
|
2024-04-23 07:22:58 +00:00
|
|
|
op := gallery.GalleryOp{
|
2024-05-06 23:17:07 +00:00
|
|
|
Id: uid,
|
|
|
|
GalleryModelName: galleryID,
|
|
|
|
Galleries: appConfig.Galleries,
|
2024-04-23 07:22:58 +00:00
|
|
|
}
|
|
|
|
go func() {
|
|
|
|
galleryService.C <- op
|
|
|
|
}()
|
|
|
|
|
2024-04-28 21:42:46 +00:00
|
|
|
return c.SendString(elements.StartProgressBar(uid, "0", "Installation"))
|
|
|
|
})
|
|
|
|
|
|
|
|
// This route is used when the "Install" button is pressed, we submit here a new job to the gallery service
|
|
|
|
// https://htmx.org/examples/progress-bar/
|
|
|
|
app.Post("/browse/delete/model/:id", auth, func(c *fiber.Ctx) error {
|
|
|
|
galleryID := strings.Clone(c.Params("id")) // note: strings.Clone is required for multiple requests!
|
2024-05-08 17:34:33 +00:00
|
|
|
log.Debug().Msgf("UI job submitted to delete : %+v\n", galleryID)
|
|
|
|
var galleryName = galleryID
|
|
|
|
if strings.Contains(galleryID, "@") {
|
|
|
|
// if the galleryID contains a @ it means that it's a model from a gallery
|
|
|
|
// but we want to delete it from the local models which does not need
|
|
|
|
// a repository ID
|
|
|
|
galleryName = strings.Split(galleryID, "@")[1]
|
|
|
|
}
|
2024-04-28 21:42:46 +00:00
|
|
|
|
|
|
|
id, err := uuid.NewUUID()
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
|
|
|
uid := id.String()
|
|
|
|
|
2024-05-08 17:34:33 +00:00
|
|
|
// Track the deletion job by galleryID and galleryName
|
|
|
|
// The GalleryID contains information about the repository,
|
|
|
|
// while the GalleryName is ONLY the name of the model
|
|
|
|
processingModels.Set(galleryName, uid)
|
2024-05-07 22:42:34 +00:00
|
|
|
processingModels.Set(galleryID, uid)
|
2024-04-28 21:42:46 +00:00
|
|
|
|
|
|
|
op := gallery.GalleryOp{
|
2024-05-06 23:17:07 +00:00
|
|
|
Id: uid,
|
|
|
|
Delete: true,
|
2024-05-08 17:34:33 +00:00
|
|
|
GalleryModelName: galleryName,
|
2024-04-28 21:42:46 +00:00
|
|
|
}
|
|
|
|
go func() {
|
|
|
|
galleryService.C <- op
|
2024-05-08 17:34:33 +00:00
|
|
|
cl.RemoveBackendConfig(galleryName)
|
2024-04-28 21:42:46 +00:00
|
|
|
}()
|
|
|
|
|
|
|
|
return c.SendString(elements.StartProgressBar(uid, "0", "Deletion"))
|
2024-04-23 07:22:58 +00:00
|
|
|
})
|
|
|
|
|
2024-04-27 07:08:33 +00:00
|
|
|
// Display the job current progress status
|
|
|
|
// If the job is done, we trigger the /browse/job/:uid route
|
2024-04-23 07:22:58 +00:00
|
|
|
// https://htmx.org/examples/progress-bar/
|
|
|
|
app.Get("/browse/job/progress/:uid", auth, func(c *fiber.Ctx) error {
|
2024-05-08 17:34:33 +00:00
|
|
|
jobUID := strings.Clone(c.Params("uid")) // note: strings.Clone is required for multiple requests!
|
2024-04-23 07:22:58 +00:00
|
|
|
|
|
|
|
status := galleryService.GetStatus(jobUID)
|
|
|
|
if status == nil {
|
|
|
|
//fmt.Errorf("could not find any status for ID")
|
|
|
|
return c.SendString(elements.ProgressBar("0"))
|
|
|
|
}
|
|
|
|
|
|
|
|
if status.Progress == 100 {
|
2024-04-27 07:08:33 +00:00
|
|
|
c.Set("HX-Trigger", "done") // this triggers /browse/job/:uid (which is when the job is done)
|
2024-04-23 07:22:58 +00:00
|
|
|
return c.SendString(elements.ProgressBar("100"))
|
|
|
|
}
|
|
|
|
if status.Error != nil {
|
2024-05-06 23:17:07 +00:00
|
|
|
return c.SendString(elements.ErrorProgress(status.Error.Error(), status.GalleryModelName))
|
2024-04-23 07:22:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return c.SendString(elements.ProgressBar(fmt.Sprint(status.Progress)))
|
|
|
|
})
|
|
|
|
|
2024-04-27 07:08:33 +00:00
|
|
|
// this route is hit when the job is done, and we display the
|
|
|
|
// final state (for now just displays "Installation completed")
|
2024-04-23 07:22:58 +00:00
|
|
|
app.Get("/browse/job/:uid", auth, func(c *fiber.Ctx) error {
|
2024-05-08 17:34:33 +00:00
|
|
|
jobUID := strings.Clone(c.Params("uid")) // note: strings.Clone is required for multiple requests!
|
2024-04-28 21:42:46 +00:00
|
|
|
|
2024-05-08 17:34:33 +00:00
|
|
|
status := galleryService.GetStatus(jobUID)
|
2024-04-28 21:42:46 +00:00
|
|
|
|
2024-05-06 23:17:07 +00:00
|
|
|
galleryID := ""
|
2024-05-07 22:42:34 +00:00
|
|
|
for _, k := range processingModels.Keys() {
|
2024-05-08 17:34:33 +00:00
|
|
|
if processingModels.Get(k) == jobUID {
|
2024-05-06 23:17:07 +00:00
|
|
|
galleryID = k
|
2024-05-07 22:42:34 +00:00
|
|
|
processingModels.Delete(k)
|
2024-04-27 07:08:33 +00:00
|
|
|
}
|
|
|
|
}
|
2024-05-08 17:34:33 +00:00
|
|
|
if galleryID == "" {
|
|
|
|
log.Debug().Msgf("no processing model found for job : %+v\n", jobUID)
|
|
|
|
}
|
2024-04-27 07:08:33 +00:00
|
|
|
|
2024-05-08 17:34:33 +00:00
|
|
|
log.Debug().Msgf("JOB finished : %+v\n", status)
|
2024-05-06 23:17:07 +00:00
|
|
|
showDelete := true
|
2024-04-28 21:42:46 +00:00
|
|
|
displayText := "Installation completed"
|
|
|
|
if status.Deletion {
|
2024-05-06 23:17:07 +00:00
|
|
|
showDelete = false
|
2024-04-28 21:42:46 +00:00
|
|
|
displayText = "Deletion completed"
|
|
|
|
}
|
|
|
|
|
2024-05-06 23:17:07 +00:00
|
|
|
return c.SendString(elements.DoneProgress(galleryID, displayText, showDelete))
|
2024-04-23 07:22:58 +00:00
|
|
|
})
|
2024-05-02 19:14:10 +00:00
|
|
|
|
|
|
|
// Show the Chat page
|
|
|
|
app.Get("/chat/:model", auth, func(c *fiber.Ctx) error {
|
2024-07-10 13:28:39 +00:00
|
|
|
backendConfigs, _ := services.ListModels(cl, ml, "", true)
|
2024-05-02 19:14:10 +00:00
|
|
|
|
|
|
|
summary := fiber.Map{
|
|
|
|
"Title": "LocalAI - Chat with " + c.Params("model"),
|
|
|
|
"ModelsConfig": backendConfigs,
|
|
|
|
"Model": c.Params("model"),
|
|
|
|
"Version": internal.PrintableVersion(),
|
2024-07-08 20:04:06 +00:00
|
|
|
"IsP2PEnabled": p2p.IsP2PEnabled(),
|
2024-05-02 19:14:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Render index
|
|
|
|
return c.Render("views/chat", summary)
|
|
|
|
})
|
2024-06-08 22:03:26 +00:00
|
|
|
|
|
|
|
app.Get("/talk/", auth, func(c *fiber.Ctx) error {
|
2024-07-10 13:28:39 +00:00
|
|
|
backendConfigs, _ := services.ListModels(cl, ml, "", true)
|
2024-06-08 22:03:26 +00:00
|
|
|
|
|
|
|
if len(backendConfigs) == 0 {
|
|
|
|
// If no model is available redirect to the index which suggests how to install models
|
|
|
|
return c.Redirect("/")
|
|
|
|
}
|
|
|
|
|
|
|
|
summary := fiber.Map{
|
|
|
|
"Title": "LocalAI - Talk",
|
|
|
|
"ModelsConfig": backendConfigs,
|
2024-07-10 13:28:39 +00:00
|
|
|
"Model": backendConfigs[0],
|
2024-07-08 20:04:06 +00:00
|
|
|
"IsP2PEnabled": p2p.IsP2PEnabled(),
|
2024-06-08 22:03:26 +00:00
|
|
|
"Version": internal.PrintableVersion(),
|
|
|
|
}
|
|
|
|
|
|
|
|
// Render index
|
|
|
|
return c.Render("views/talk", summary)
|
|
|
|
})
|
|
|
|
|
2024-05-02 19:14:10 +00:00
|
|
|
app.Get("/chat/", auth, func(c *fiber.Ctx) error {
|
|
|
|
|
2024-07-10 13:28:39 +00:00
|
|
|
backendConfigs, _ := services.ListModels(cl, ml, "", true)
|
2024-05-02 19:14:10 +00:00
|
|
|
|
|
|
|
if len(backendConfigs) == 0 {
|
2024-05-06 23:17:07 +00:00
|
|
|
// If no model is available redirect to the index which suggests how to install models
|
|
|
|
return c.Redirect("/")
|
2024-05-02 19:14:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
summary := fiber.Map{
|
2024-07-10 13:28:39 +00:00
|
|
|
"Title": "LocalAI - Chat with " + backendConfigs[0],
|
2024-05-02 19:14:10 +00:00
|
|
|
"ModelsConfig": backendConfigs,
|
2024-07-10 13:28:39 +00:00
|
|
|
"Model": backendConfigs[0],
|
2024-05-02 19:14:10 +00:00
|
|
|
"Version": internal.PrintableVersion(),
|
2024-07-08 20:04:06 +00:00
|
|
|
"IsP2PEnabled": p2p.IsP2PEnabled(),
|
2024-05-02 19:14:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Render index
|
|
|
|
return c.Render("views/chat", summary)
|
|
|
|
})
|
|
|
|
|
|
|
|
app.Get("/text2image/:model", auth, func(c *fiber.Ctx) error {
|
|
|
|
backendConfigs := cl.GetAllBackendConfigs()
|
|
|
|
|
|
|
|
summary := fiber.Map{
|
|
|
|
"Title": "LocalAI - Generate images with " + c.Params("model"),
|
|
|
|
"ModelsConfig": backendConfigs,
|
|
|
|
"Model": c.Params("model"),
|
|
|
|
"Version": internal.PrintableVersion(),
|
2024-07-08 20:04:06 +00:00
|
|
|
"IsP2PEnabled": p2p.IsP2PEnabled(),
|
2024-05-02 19:14:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Render index
|
|
|
|
return c.Render("views/text2image", summary)
|
|
|
|
})
|
|
|
|
|
|
|
|
app.Get("/text2image/", auth, func(c *fiber.Ctx) error {
|
|
|
|
|
|
|
|
backendConfigs := cl.GetAllBackendConfigs()
|
|
|
|
|
|
|
|
if len(backendConfigs) == 0 {
|
2024-05-06 23:17:07 +00:00
|
|
|
// If no model is available redirect to the index which suggests how to install models
|
|
|
|
return c.Redirect("/")
|
2024-05-02 19:14:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
summary := fiber.Map{
|
|
|
|
"Title": "LocalAI - Generate images with " + backendConfigs[0].Name,
|
|
|
|
"ModelsConfig": backendConfigs,
|
|
|
|
"Model": backendConfigs[0].Name,
|
|
|
|
"Version": internal.PrintableVersion(),
|
2024-07-08 20:04:06 +00:00
|
|
|
"IsP2PEnabled": p2p.IsP2PEnabled(),
|
2024-05-02 19:14:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Render index
|
|
|
|
return c.Render("views/text2image", summary)
|
|
|
|
})
|
|
|
|
|
|
|
|
app.Get("/tts/:model", auth, func(c *fiber.Ctx) error {
|
|
|
|
backendConfigs := cl.GetAllBackendConfigs()
|
|
|
|
|
|
|
|
summary := fiber.Map{
|
|
|
|
"Title": "LocalAI - Generate images with " + c.Params("model"),
|
|
|
|
"ModelsConfig": backendConfigs,
|
|
|
|
"Model": c.Params("model"),
|
|
|
|
"Version": internal.PrintableVersion(),
|
2024-07-08 20:04:06 +00:00
|
|
|
"IsP2PEnabled": p2p.IsP2PEnabled(),
|
2024-05-02 19:14:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Render index
|
|
|
|
return c.Render("views/tts", summary)
|
|
|
|
})
|
|
|
|
|
|
|
|
app.Get("/tts/", auth, func(c *fiber.Ctx) error {
|
|
|
|
|
|
|
|
backendConfigs := cl.GetAllBackendConfigs()
|
|
|
|
|
|
|
|
if len(backendConfigs) == 0 {
|
2024-05-06 23:17:07 +00:00
|
|
|
// If no model is available redirect to the index which suggests how to install models
|
|
|
|
return c.Redirect("/")
|
2024-05-02 19:14:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
summary := fiber.Map{
|
|
|
|
"Title": "LocalAI - Generate audio with " + backendConfigs[0].Name,
|
|
|
|
"ModelsConfig": backendConfigs,
|
|
|
|
"Model": backendConfigs[0].Name,
|
2024-07-08 20:04:06 +00:00
|
|
|
"IsP2PEnabled": p2p.IsP2PEnabled(),
|
2024-05-02 19:14:10 +00:00
|
|
|
"Version": internal.PrintableVersion(),
|
|
|
|
}
|
|
|
|
|
|
|
|
// Render index
|
|
|
|
return c.Render("views/tts", summary)
|
|
|
|
})
|
2024-04-23 07:22:58 +00:00
|
|
|
}
|