Skip to content

Commit

Permalink
Fixed semantic versioning (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kardbord authored Dec 10, 2023
1 parent 0504a57 commit 4e34186
Show file tree
Hide file tree
Showing 38 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion audio_classification_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
)

func TestAudioClassificationRequest(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion conversational_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
"github.com/google/go-cmp/cmp"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/audio_classification/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"time"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
)

const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN"
Expand Down
2 changes: 1 addition & 1 deletion examples/conversational/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"syscall"
"time"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
)

const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN"
Expand Down
2 changes: 1 addition & 1 deletion examples/fill_mask/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"time"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
)

const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN"
Expand Down
2 changes: 1 addition & 1 deletion examples/image_classification/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
)

const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN"
Expand Down
2 changes: 1 addition & 1 deletion examples/image_segmentation/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/image_to_text/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"time"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
)

const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN"
Expand Down
2 changes: 1 addition & 1 deletion examples/object_detection/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"os"
"time"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
)

const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN"
Expand Down
2 changes: 1 addition & 1 deletion examples/question_answering/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"time"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
)

const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN"
Expand Down
2 changes: 1 addition & 1 deletion examples/sentence_similarity/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"time"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
)

const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN"
Expand Down
2 changes: 1 addition & 1 deletion examples/speech_recognition/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"time"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
)

const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN"
Expand Down
2 changes: 1 addition & 1 deletion examples/summarization/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"time"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
)

const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN"
Expand Down
2 changes: 1 addition & 1 deletion examples/table_question_answering/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"text/tabwriter"
"time"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
)

const TableRows = 2
Expand Down
2 changes: 1 addition & 1 deletion examples/text_classification/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"time"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
)

const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN"
Expand Down
2 changes: 1 addition & 1 deletion examples/text_generation/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"time"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
)

const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN"
Expand Down
2 changes: 1 addition & 1 deletion examples/text_to_image/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"os"
"time"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
)

const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN"
Expand Down
2 changes: 1 addition & 1 deletion examples/token_classification/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"time"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
)

const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN"
Expand Down
2 changes: 1 addition & 1 deletion examples/translation/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"time"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
)

const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN"
Expand Down
2 changes: 1 addition & 1 deletion examples/zeroshot/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"time"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
)

const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN"
Expand Down
2 changes: 1 addition & 1 deletion fill_mask_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
"github.com/google/go-cmp/cmp"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/Kardbord/hfapigo
module github.com/Kardbord/hfapigo/v2

go 1.17

Expand Down
2 changes: 1 addition & 1 deletion image_classification_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package hfapigo_test
import (
"testing"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
)

func TestImageClassificationRequest(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion image_segmentation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package hfapigo_test
import (
"testing"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
)

func TestImageSegmentationRequest(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion image_to_text_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
)

func TestImageToText(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion object_detection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
)

func TestObjectDetectionRequest(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion question_answering_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
"github.com/google/go-cmp/cmp"
)

Expand Down
2 changes: 1 addition & 1 deletion sentence_similarity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
"github.com/google/go-cmp/cmp"
)

Expand Down
2 changes: 1 addition & 1 deletion setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"testing"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
)

const HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN"
Expand Down
2 changes: 1 addition & 1 deletion speech_recognition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
)

func TestSpeechRecognitionRequest(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion summarization_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
"github.com/google/go-cmp/cmp"
)

Expand Down
2 changes: 1 addition & 1 deletion table_question_answering_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
"github.com/google/go-cmp/cmp"
)

Expand Down
2 changes: 1 addition & 1 deletion text_classification_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
"github.com/google/go-cmp/cmp"
)

Expand Down
2 changes: 1 addition & 1 deletion text_generation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
"github.com/google/go-cmp/cmp"
)

Expand Down
2 changes: 1 addition & 1 deletion text_to_image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package hfapigo_test
import (
"testing"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
)

func TestTextToImage(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion token_classification_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
"github.com/google/go-cmp/cmp"
)

Expand Down
2 changes: 1 addition & 1 deletion translation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
"github.com/google/go-cmp/cmp"
)

Expand Down
2 changes: 1 addition & 1 deletion zeroshot_classification_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"testing"

"github.com/Kardbord/hfapigo"
"github.com/Kardbord/hfapigo/v2"
"github.com/google/go-cmp/cmp"
)

Expand Down

0 comments on commit 4e34186

Please sign in to comment.