mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-20 10:35:01 +00:00
Cleanup leftover
This commit is contained in:
parent
dbc70dc13c
commit
abee34f60a
1 changed files with 0 additions and 8 deletions
8
api.go
8
api.go
|
@ -28,14 +28,6 @@ func api(l *llama.LLama, listenAddr string, threads int) error {
|
|||
"tokens": 100
|
||||
}'
|
||||
*/
|
||||
// Serve the index.html file
|
||||
app.Get("/", func(c *fiber.Ctx) error {
|
||||
data, err := indexHTML.ReadFile("index.html")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return c.Send(data)
|
||||
})
|
||||
|
||||
// Endpoint to generate the prediction
|
||||
app.Post("/predict", func(c *fiber.Ctx) error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue