Skip to content

Commit

Permalink
Fixing Imports
Browse files Browse the repository at this point in the history
  • Loading branch information
s32x committed Mar 10, 2019
1 parent 095bf81 commit 46179c5
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 16 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
@@ -1,8 +1,8 @@
# ============================== BINARY BUILDER ==============================
FROM golang:1.12 as builder
FROM golang:latest as builder

# Copy in the source
WORKDIR /go/src/s32x.com/tfclass
WORKDIR /go/src/s32x.com/gamedetect
COPY / .

# Dependencies
Expand Down Expand Up @@ -31,13 +31,12 @@ RUN rm -f libtensorflow-cpu-linux-x86_64-1.12.0.tar.gz

# Graph/Labels files
COPY graph /graph
COPY test /test
COPY service/static /service/static

# Environment
ENV LIBRARY_PATH=$LIBRARY_PATH:/usr/local/lib
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

# Binary
COPY --from=builder /go/src/s32x.com/tfclass/bin/server /usr/local/bin/server
COPY --from=builder /go/src/s32x.com/gamedetect/bin/server /usr/local/bin/server
CMD ["server"]
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -18,5 +18,5 @@ deploy:
make clean
make deps
heroku container:login
heroku container:push web -a tfclass
heroku container:release web -a tfclass
heroku container:push web -a gamedetect
heroku container:release web -a gamedetect
2 changes: 1 addition & 1 deletion classifier/classifier.go
Expand Up @@ -4,7 +4,7 @@
// tensorhubs retrain.py
// See: https://github.com/tensorflow/hub/blob/master/examples/image_retraining/retrain.py

package classifier /* import "s32x.com/tfclass/classifier" */
package classifier /* import "s32x.com/gamedetect/classifier" */

import (
"bufio"
Expand Down
2 changes: 1 addition & 1 deletion classifier/classify.go
@@ -1,4 +1,4 @@
package classifier /* import "s32x.com/tfclass/classifier" */
package classifier /* import "s32x.com/gamedetect/classifier" */

import (
"errors"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
@@ -1,4 +1,4 @@
module s32x.com/tfclass
module s32x.com/gamedetect

go 1.12

Expand Down
4 changes: 2 additions & 2 deletions main.go
@@ -1,12 +1,12 @@
package main /* import "s32x.com/tfclass" */
package main /* import "s32x.com/gamedetect" */

import (
"log"
"math/rand"
"os"
"time"

"s32x.com/tfclass/service"
"s32x.com/gamedetect/service"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions service/classify.go
@@ -1,4 +1,4 @@
package service /* import "s32x.com/tfclass/service" */
package service /* import "s32x.com/gamedetect/service" */

import (
"bytes"
Expand All @@ -7,7 +7,7 @@ import (
"time"

"github.com/labstack/echo"
"s32x.com/tfclass/classifier"
"s32x.com/gamedetect/classifier"
)

// Results is a struct containing the results of a classified image
Expand Down
2 changes: 1 addition & 1 deletion service/index.go
Expand Up @@ -7,7 +7,7 @@ import (
"path/filepath"

"github.com/labstack/echo"
"s32x.com/tfclass/classifier"
"s32x.com/gamedetect/classifier"
)

// Result is a struct containing the results of a classified image
Expand Down
4 changes: 2 additions & 2 deletions service/service.go
@@ -1,4 +1,4 @@
package service /* import "s32x.com/tfclass/service" */
package service /* import "s32x.com/gamedetect/service" */

import (
"log"
Expand All @@ -8,7 +8,7 @@ import (

"github.com/labstack/echo"
"github.com/labstack/echo/middleware"
"s32x.com/tfclass/classifier"
"s32x.com/gamedetect/classifier"
)

// Service is a struct that contains everything needed to perform image
Expand Down

0 comments on commit 46179c5

Please sign in to comment.