-
Notifications
You must be signed in to change notification settings - Fork 561
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jesse Andrews <[email protected]>
- Loading branch information
1 parent
6e2bba7
commit 6b0ccfe
Showing
1 changed file
with
3 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ import ( | |
) | ||
|
||
var ( | ||
envFlags []string | ||
inputFlags []string | ||
outPath string | ||
) | ||
|
@@ -49,6 +50,7 @@ the prediction on that.`, | |
|
||
cmd.Flags().StringArrayVarP(&inputFlags, "input", "i", []string{}, "Inputs, in the form name=value. if value is prefixed with @, then it is read from a file on disk. E.g. -i [email protected]") | ||
cmd.Flags().StringVarP(&outPath, "output", "o", "", "Output path") | ||
cmd.Flags().StringArrayVarP(&envFlags, "env", "e", []string{}, "Environment variables, in the form name=value") | ||
|
||
return cmd | ||
} | ||
|
@@ -110,6 +112,7 @@ func cmdPredict(cmd *cobra.Command, args []string) error { | |
GPUs: gpus, | ||
Image: imageName, | ||
Volumes: volumes, | ||
Env: envFlags, | ||
}) | ||
|
||
go func() { | ||
|