Code clean-up (go fmt)
This commit is contained in:
parent
0c1f326dc5
commit
da77a1230e
6 changed files with 8 additions and 9 deletions
|
@ -130,7 +130,6 @@ func (t *TensorFlow) findBestLabels(probabilities []float32) []TensorFlowLabel {
|
|||
return resultLabels[:5]
|
||||
}
|
||||
|
||||
|
||||
func (t *TensorFlow) makeTensorFromImage(image string, imageFormat string) (*tf.Tensor, error) {
|
||||
tensor, err := tf.NewTensor(image)
|
||||
if err != nil {
|
||||
|
|
|
@ -3,8 +3,8 @@ package server
|
|||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/gin-gonic/gin/binding"
|
||||
"github.com/photoprism/photoprism/internal/photoprism"
|
||||
"github.com/photoprism/photoprism/internal/forms"
|
||||
"github.com/photoprism/photoprism/internal/photoprism"
|
||||
"net/http"
|
||||
"strconv"
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue