From abee34f60a2a22f45a34bafd0ecd9e655e603667 Mon Sep 17 00:00:00 2001 From: mudler Date: Sat, 25 Mar 2023 01:10:50 +0100 Subject: [PATCH] Cleanup leftover --- api.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/api.go b/api.go index 29260eb..cd000d3 100644 --- a/api.go +++ b/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 {