Skip to content

Commit

Permalink
fix GNF_VERIFIER_URL env var for web UI
Browse files Browse the repository at this point in the history
  • Loading branch information
dimus committed Jan 6, 2025
1 parent cc772c5 commit 025a064
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

## [v1.1.7] - 2025-01-06 Mon

- Fix: GNF_VERIFIER_URL now works for web GUI.

## [v1.1.6] - 2024-06-11 Tue

- Add: GitHub icon for the web GUI
Expand Down
21 changes: 10 additions & 11 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,6 @@ verification results.
os.Exit(0)
}

if port := portFlag(cmd); port > 0 {
dict := dict.LoadDictionary()
weights := nlp.BayesWeights()

cfg := config.New()
gnf := gnfinder.New(cfg, dict, weights)
web.Run(gnf, port)

os.Exit(0)
}

ambiguousUninomialsFlag(cmd)
adjustOddsFlag(cmd)
bayesFlag(cmd)
Expand All @@ -131,6 +120,16 @@ verification results.

cfg := config.New(opts...)

if port := portFlag(cmd); port > 0 {
dict := dict.LoadDictionary()
weights := nlp.BayesWeights()

gnf := gnfinder.New(cfg, dict, weights)
web.Run(gnf, port)

os.Exit(0)
}

var data, input string
var rawData []byte
var convDur float32
Expand Down
2 changes: 1 addition & 1 deletion pkg/version.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package gnfinder

var (
Version = "v1.1.6"
Version = "v1.1.7"
Build string
)

0 comments on commit 025a064

Please sign in to comment.