From 4e34186e6f580990e37a29ba3b9924fee3be1a1d Mon Sep 17 00:00:00 2001 From: Tanner Kvarfordt Date: Sat, 9 Dec 2023 21:07:23 -0700 Subject: [PATCH] Fixed semantic versioning (#30) --- audio_classification_test.go | 2 +- conversational_test.go | 2 +- examples/audio_classification/main.go | 2 +- examples/conversational/main.go | 2 +- examples/fill_mask/main.go | 2 +- examples/image_classification/main.go | 2 +- examples/image_segmentation/main.go | 2 +- examples/image_to_text/main.go | 2 +- examples/object_detection/main.go | 2 +- examples/question_answering/main.go | 2 +- examples/sentence_similarity/main.go | 2 +- examples/speech_recognition/main.go | 2 +- examples/summarization/main.go | 2 +- examples/table_question_answering/main.go | 2 +- examples/text_classification/main.go | 2 +- examples/text_generation/main.go | 2 +- examples/text_to_image/main.go | 2 +- examples/token_classification/main.go | 2 +- examples/translation/main.go | 2 +- examples/zeroshot/main.go | 2 +- fill_mask_test.go | 2 +- go.mod | 2 +- image_classification_test.go | 2 +- image_segmentation_test.go | 2 +- image_to_text_test.go | 2 +- object_detection_test.go | 2 +- question_answering_test.go | 2 +- sentence_similarity_test.go | 2 +- setup_test.go | 2 +- speech_recognition_test.go | 2 +- summarization_test.go | 2 +- table_question_answering_test.go | 2 +- text_classification_test.go | 2 +- text_generation_test.go | 2 +- text_to_image_test.go | 2 +- token_classification_test.go | 2 +- translation_test.go | 2 +- zeroshot_classification_test.go | 2 +- 38 files changed, 38 insertions(+), 38 deletions(-) diff --git a/audio_classification_test.go b/audio_classification_test.go index 94d4ffa..606782a 100644 --- a/audio_classification_test.go +++ b/audio_classification_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" ) func TestAudioClassificationRequest(t *testing.T) { diff --git a/conversational_test.go b/conversational_test.go index e6a140a..80499a9 100644 --- a/conversational_test.go +++ b/conversational_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" "github.com/google/go-cmp/cmp" ) diff --git a/examples/audio_classification/main.go b/examples/audio_classification/main.go index a7efd52..99f64e3 100644 --- a/examples/audio_classification/main.go +++ b/examples/audio_classification/main.go @@ -5,7 +5,7 @@ import ( "os" "time" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" ) const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN" diff --git a/examples/conversational/main.go b/examples/conversational/main.go index 8982ed8..2364d62 100644 --- a/examples/conversational/main.go +++ b/examples/conversational/main.go @@ -9,7 +9,7 @@ import ( "syscall" "time" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" ) const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN" diff --git a/examples/fill_mask/main.go b/examples/fill_mask/main.go index 23f583d..09d96a3 100644 --- a/examples/fill_mask/main.go +++ b/examples/fill_mask/main.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" ) const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN" diff --git a/examples/image_classification/main.go b/examples/image_classification/main.go index 7a5ae54..4118958 100644 --- a/examples/image_classification/main.go +++ b/examples/image_classification/main.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" ) const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN" diff --git a/examples/image_segmentation/main.go b/examples/image_segmentation/main.go index 9a76f6f..729b1eb 100644 --- a/examples/image_segmentation/main.go +++ b/examples/image_segmentation/main.go @@ -12,7 +12,7 @@ import ( "strings" "time" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" "golang.org/x/image/font" "golang.org/x/image/font/basicfont" "golang.org/x/image/math/fixed" diff --git a/examples/image_to_text/main.go b/examples/image_to_text/main.go index 60e4bbe..07c43e1 100644 --- a/examples/image_to_text/main.go +++ b/examples/image_to_text/main.go @@ -6,7 +6,7 @@ import ( "os" "time" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" ) const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN" diff --git a/examples/object_detection/main.go b/examples/object_detection/main.go index a721efa..5913807 100644 --- a/examples/object_detection/main.go +++ b/examples/object_detection/main.go @@ -13,7 +13,7 @@ import ( "os" "time" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" ) const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN" diff --git a/examples/question_answering/main.go b/examples/question_answering/main.go index 8ca7c70..c2dca70 100644 --- a/examples/question_answering/main.go +++ b/examples/question_answering/main.go @@ -5,7 +5,7 @@ import ( "os" "time" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" ) const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN" diff --git a/examples/sentence_similarity/main.go b/examples/sentence_similarity/main.go index 855a41b..65e0aa8 100644 --- a/examples/sentence_similarity/main.go +++ b/examples/sentence_similarity/main.go @@ -6,7 +6,7 @@ import ( "strings" "time" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" ) const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN" diff --git a/examples/speech_recognition/main.go b/examples/speech_recognition/main.go index cbea599..3ca0203 100644 --- a/examples/speech_recognition/main.go +++ b/examples/speech_recognition/main.go @@ -5,7 +5,7 @@ import ( "os" "time" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" ) const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN" diff --git a/examples/summarization/main.go b/examples/summarization/main.go index 2a0e180..89e8399 100644 --- a/examples/summarization/main.go +++ b/examples/summarization/main.go @@ -5,7 +5,7 @@ import ( "os" "time" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" ) const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN" diff --git a/examples/table_question_answering/main.go b/examples/table_question_answering/main.go index cff702f..d77a7b1 100644 --- a/examples/table_question_answering/main.go +++ b/examples/table_question_answering/main.go @@ -6,7 +6,7 @@ import ( "text/tabwriter" "time" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" ) const TableRows = 2 diff --git a/examples/text_classification/main.go b/examples/text_classification/main.go index b0b26a2..2076564 100644 --- a/examples/text_classification/main.go +++ b/examples/text_classification/main.go @@ -6,7 +6,7 @@ import ( "strings" "time" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" ) const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN" diff --git a/examples/text_generation/main.go b/examples/text_generation/main.go index 17e1ccf..38fd705 100644 --- a/examples/text_generation/main.go +++ b/examples/text_generation/main.go @@ -6,7 +6,7 @@ import ( "strings" "time" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" ) const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN" diff --git a/examples/text_to_image/main.go b/examples/text_to_image/main.go index a95cf3c..8a09a05 100644 --- a/examples/text_to_image/main.go +++ b/examples/text_to_image/main.go @@ -10,7 +10,7 @@ import ( "os" "time" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" ) const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN" diff --git a/examples/token_classification/main.go b/examples/token_classification/main.go index 019d858..1f909f3 100644 --- a/examples/token_classification/main.go +++ b/examples/token_classification/main.go @@ -6,7 +6,7 @@ import ( "strings" "time" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" ) const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN" diff --git a/examples/translation/main.go b/examples/translation/main.go index 5c039b7..5721df9 100644 --- a/examples/translation/main.go +++ b/examples/translation/main.go @@ -6,7 +6,7 @@ import ( "strings" "time" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" ) const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN" diff --git a/examples/zeroshot/main.go b/examples/zeroshot/main.go index 4e1855c..00597df 100644 --- a/examples/zeroshot/main.go +++ b/examples/zeroshot/main.go @@ -6,7 +6,7 @@ import ( "strings" "time" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" ) const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN" diff --git a/fill_mask_test.go b/fill_mask_test.go index 2a65df7..6441173 100644 --- a/fill_mask_test.go +++ b/fill_mask_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" "github.com/google/go-cmp/cmp" ) diff --git a/go.mod b/go.mod index 6ca13d4..3b96b68 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/Kardbord/hfapigo +module github.com/Kardbord/hfapigo/v2 go 1.17 diff --git a/image_classification_test.go b/image_classification_test.go index 408bec1..25f3253 100644 --- a/image_classification_test.go +++ b/image_classification_test.go @@ -3,7 +3,7 @@ package hfapigo_test import ( "testing" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" ) func TestImageClassificationRequest(t *testing.T) { diff --git a/image_segmentation_test.go b/image_segmentation_test.go index acefc2a..fc80f83 100644 --- a/image_segmentation_test.go +++ b/image_segmentation_test.go @@ -3,7 +3,7 @@ package hfapigo_test import ( "testing" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" ) func TestImageSegmentationRequest(t *testing.T) { diff --git a/image_to_text_test.go b/image_to_text_test.go index 79ba7c2..ad96e55 100644 --- a/image_to_text_test.go +++ b/image_to_text_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" ) func TestImageToText(t *testing.T) { diff --git a/object_detection_test.go b/object_detection_test.go index 598407e..405b7c3 100644 --- a/object_detection_test.go +++ b/object_detection_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" ) func TestObjectDetectionRequest(t *testing.T) { diff --git a/question_answering_test.go b/question_answering_test.go index fc7f58b..8b11657 100644 --- a/question_answering_test.go +++ b/question_answering_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" "github.com/google/go-cmp/cmp" ) diff --git a/sentence_similarity_test.go b/sentence_similarity_test.go index 2bf6df6..1846c6d 100644 --- a/sentence_similarity_test.go +++ b/sentence_similarity_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" "github.com/google/go-cmp/cmp" ) diff --git a/setup_test.go b/setup_test.go index acd86e6..21d9055 100644 --- a/setup_test.go +++ b/setup_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" ) const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN" diff --git a/speech_recognition_test.go b/speech_recognition_test.go index 0bc08b2..375bfed 100644 --- a/speech_recognition_test.go +++ b/speech_recognition_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" ) func TestSpeechRecognitionRequest(t *testing.T) { diff --git a/summarization_test.go b/summarization_test.go index 2b1469a..c9e7e34 100644 --- a/summarization_test.go +++ b/summarization_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" "github.com/google/go-cmp/cmp" ) diff --git a/table_question_answering_test.go b/table_question_answering_test.go index 7382ca4..9a2fdf5 100644 --- a/table_question_answering_test.go +++ b/table_question_answering_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" "github.com/google/go-cmp/cmp" ) diff --git a/text_classification_test.go b/text_classification_test.go index 04049bb..23cbc2b 100644 --- a/text_classification_test.go +++ b/text_classification_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" "github.com/google/go-cmp/cmp" ) diff --git a/text_generation_test.go b/text_generation_test.go index cc4a0b2..aedfece 100644 --- a/text_generation_test.go +++ b/text_generation_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" "github.com/google/go-cmp/cmp" ) diff --git a/text_to_image_test.go b/text_to_image_test.go index a77a08e..9f737a7 100644 --- a/text_to_image_test.go +++ b/text_to_image_test.go @@ -3,7 +3,7 @@ package hfapigo_test import ( "testing" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" ) func TestTextToImage(t *testing.T) { diff --git a/token_classification_test.go b/token_classification_test.go index 542fca8..6515d67 100644 --- a/token_classification_test.go +++ b/token_classification_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" "github.com/google/go-cmp/cmp" ) diff --git a/translation_test.go b/translation_test.go index 08b6cf1..1b30f95 100644 --- a/translation_test.go +++ b/translation_test.go @@ -4,7 +4,7 @@ import ( "encoding/json" "testing" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" "github.com/google/go-cmp/cmp" ) diff --git a/zeroshot_classification_test.go b/zeroshot_classification_test.go index 073aec8..a6e8d36 100644 --- a/zeroshot_classification_test.go +++ b/zeroshot_classification_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/Kardbord/hfapigo" + "github.com/Kardbord/hfapigo/v2" "github.com/google/go-cmp/cmp" )