Skip to content

Commit

Permalink
fix: similarity_cos_string dead loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Adriankhl committed May 30, 2024
1 parent f2e0e74 commit 98bf835
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func _ready():
3. Generate text starting from "Hello"
```
var generated_text = gdllama.generate_text_simple("Hello")
print(hello)
print(generated_text)
```
4. Text generation is slow, you may want to call `gdllama.run_generate_text("Hello", "", "")` to run the generation in background, then handle the `generate_text_updated` or `generate_text_finished` signals

Expand Down
2 changes: 1 addition & 1 deletion src/gdembedding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ float GDEmbedding::similarity_cos_string(String s1, String s2) {

func_mutex->unlock();

float similarity = similarity_cos_string(s1, s2);
float similarity = similarity_cos_string_internal(s1, s2);

glog_verbose("similarity_cos_string -- done");

Expand Down

0 comments on commit 98bf835

Please sign in to comment.