Commit d4cfee79 authored by Michael Yang's avatar Michael Yang
Browse files

resolve modelfile before passing to server

parent 9658a504
...@@ -9,6 +9,7 @@ import ( ...@@ -9,6 +9,7 @@ import (
"net" "net"
"net/http" "net/http"
"os" "os"
"path/filepath"
"strings" "strings"
"time" "time"
...@@ -25,6 +26,11 @@ import ( ...@@ -25,6 +26,11 @@ import (
func create(cmd *cobra.Command, args []string) error { func create(cmd *cobra.Command, args []string) error {
filename, _ := cmd.Flags().GetString("file") filename, _ := cmd.Flags().GetString("file")
filename, err := filepath.Abs(filename)
if err != nil {
return err
}
client := api.NewClient() client := api.NewClient()
var spinner *Spinner var spinner *Spinner
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment