diff --git a/internal/models/camera.go b/internal/models/camera.go index 78f2af951..070ca7e21 100644 --- a/internal/models/camera.go +++ b/internal/models/camera.go @@ -22,7 +22,7 @@ func NewCamera(modelName string) *Camera { result := &Camera{ CameraModel: modelName, - CameraSlug: cameraSlug, + CameraSlug: cameraSlug, } return result diff --git a/internal/models/location.go b/internal/models/location.go index 289ba5e02..2829ecfab 100644 --- a/internal/models/location.go +++ b/internal/models/location.go @@ -19,4 +19,4 @@ type Location struct { LocCountry string LocCountryCode string LocFavorite bool -} \ No newline at end of file +} diff --git a/internal/photoprism/search_test.go b/internal/photoprism/search_test.go index f1f80616a..c9bc914a6 100644 --- a/internal/photoprism/search_test.go +++ b/internal/photoprism/search_test.go @@ -64,4 +64,4 @@ func TestSearch_Photos_Camera(t *testing.T) { t.Log(photos) t.Logf("Total Count: %d", total) -} \ No newline at end of file +} diff --git a/internal/photoprism/tensorflow.go b/internal/photoprism/tensorflow.go index a64cec26d..6f9630f4f 100644 --- a/internal/photoprism/tensorflow.go +++ b/internal/photoprism/tensorflow.go @@ -13,12 +13,12 @@ import ( type TensorFlow struct { modelPath string - graph *tf.Graph - labels []string + graph *tf.Graph + labels []string } func NewTensorFlow(tensorFlowModelPath string) *TensorFlow { - return &TensorFlow{modelPath:tensorFlowModelPath} + return &TensorFlow{modelPath: tensorFlowModelPath} } type TensorFlowLabel struct { @@ -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 { diff --git a/internal/server/routes.go b/internal/server/routes.go index aed503ae9..14a1da881 100644 --- a/internal/server/routes.go +++ b/internal/server/routes.go @@ -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" ) diff --git a/internal/server/server.go b/internal/server/server.go index 710d7a85a..c8991f6d3 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -9,7 +9,7 @@ import ( func Start(conf *photoprism.Config) { if conf.ServerMode != "" { gin.SetMode(conf.ServerMode) - } else if conf.Debug == false{ + } else if conf.Debug == false { gin.SetMode(gin.ReleaseMode) }