Skip to content

Commit

Permalink
updated examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kingmariano committed Jul 20, 2024
1 parent 92a6d52 commit ce53fbf
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _examples/imageGeneration/highImageGenration.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,9 @@ func main() {
return
}

fmt.Println("JSON data written to file.json successfully")
fmt.Println("JSON data written to file.json successfully"

Check failure on line 60 in _examples/imageGeneration/highImageGenration.go

View workflow job for this annotation

GitHub Actions / build

missing ',' before newline in argument list
// dynamically handle the response with the Gabs library: https://github.com/Jeffail/gabs/
outputText := res.Path("response.output").Data().(map[string]interface{})

Check failure on line 62 in _examples/imageGeneration/highImageGenration.go

View workflow job for this annotation

GitHub Actions / build

missing ',' in argument list
fmt.Println(outputText)

Check failure on line 63 in _examples/imageGeneration/highImageGenration.go

View workflow job for this annotation

GitHub Actions / build

missing ',' before newline in argument list

}

Check failure on line 65 in _examples/imageGeneration/highImageGenration.go

View workflow job for this annotation

GitHub Actions / build

expected operand, found '}'
4 changes: 4 additions & 0 deletions _examples/imageGeneration/lowImageGeneration.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,8 @@ func main() {
}

fmt.Println("JSON data written to file.json successfully")
// dynamically handle the response with the Gabs library: https://github.com/Jeffail/gabs/
outputText := res.Path("response.output").Data().(map[string]interface{})
fmt.Println(outputText)

}
4 changes: 4 additions & 0 deletions _examples/imageUpscale/highImageUpscale.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,8 @@ func main() {
}

fmt.Println("JSON data written to file.json successfully")
// dynamically handle the response with the Gabs library: https://github.com/Jeffail/gabs/
outputText := res.Path("response.output").Data().(map[string]interface{})
fmt.Println(outputText)

}
4 changes: 4 additions & 0 deletions _examples/imageUpscale/lowImageUpscale.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,8 @@ func main() {
}

fmt.Println("JSON data written to file.json successfully")
// dynamically handle the response with the Gabs library: https://github.com/Jeffail/gabs/
outputText := res.Path("response.output").Data().(map[string]interface{})
fmt.Println(outputText)

}
4 changes: 4 additions & 0 deletions _examples/musicGeneration/highMusicGeneration.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,8 @@ func main() {
}

fmt.Println("JSON data written to file.json successfully")
// dynamically handle the response with the Gabs library: https://github.com/Jeffail/gabs/
outputText := res.Path("response.output").Data().(map[string]interface{})
fmt.Println(outputText)

}
4 changes: 4 additions & 0 deletions _examples/musicGeneration/lowMusicGeneration.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,8 @@ func main() {
}

fmt.Println("JSON data written to file.json successfully")
// dynamically handle the response with the Gabs library: https://github.com/Jeffail/gabs/
outputText := res.Path("response.output").Data().(map[string]interface{})
fmt.Println(outputText)

}
4 changes: 4 additions & 0 deletions _examples/stt/highSTT.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,8 @@ func main() {
}

fmt.Println("JSON data written to file.json successfully")
// dynamically handle the response with the Gabs library: https://github.com/Jeffail/gabs/
outputText := res.Path("response.output").Data().(map[string]interface{})
fmt.Println(outputText)

}
4 changes: 4 additions & 0 deletions _examples/stt/lowSTT.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,8 @@ func main() {
}

fmt.Println("JSON data written to file.json successfully")
// dynamically handle the response with the Gabs library: https://github.com/Jeffail/gabs/
outputData := res.Path("response.output").Data().(map[string]interface{})
fmt.Println(outputText)

}

0 comments on commit ce53fbf

Please sign in to comment.