Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
sandrohanea committed Oct 10, 2024
1 parent 324e4e2 commit efdd699
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Whisper.net/LibraryLoader/LinuxLibraryLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public LoadResult OpenLibrary(string? fileName, bool global)
IntPtr loadedLib;
try
{
// open with rtls lazy flag
// open with rtld now + (global if true)
loadedLib = NativeOpenLibraryLibdl2(fileName, global ? 0x00102 : 0x00002);
}
catch (DllNotFoundException)
Expand Down
2 changes: 1 addition & 1 deletion Whisper.net/LibraryLoader/NativeLibraryLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ _ when RuntimeInformation.IsOSPlatform(OSPlatform.OSX) => "macos",

// Ggml was loaded, for this runtimePath, we need to load whisper as well
var whisperPath = GetLibraryPath(platform, "whisper", runtimePath);
var whisperLoaded = libraryLoader.OpenLibrary(whisperPath, global: false);
var whisperLoaded = libraryLoader.OpenLibrary(whisperPath, global: true);
Console.WriteLine($"Success loaded whisper: {whisperLoaded.IsSuccess} --- Error message: {whisperLoaded.ErrorMessage}");

if (whisperLoaded.IsSuccess)
Expand Down

0 comments on commit efdd699

Please sign in to comment.