]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
minor : updates few prints + fix buttons in whisper.wasm
authorGeorgi Gerganov <redacted>
Wed, 23 Nov 2022 15:17:01 +0000 (17:17 +0200)
committerGeorgi Gerganov <redacted>
Wed, 23 Nov 2022 15:19:21 +0000 (17:19 +0200)
examples/whisper.wasm/index-tmpl.html
whisper.cpp

index 182527f575d42dc5dde007a875c92b15aad1ccc7..5511f696d8e9e1ce280aa64acee7f445141a6fb6 100644 (file)
                     storeFS(fname, buf);
                 }
                 reader.readAsArrayBuffer(file);
+
+                document.getElementById('fetch-whisper-tiny-en').style.display = 'none';
+                document.getElementById('fetch-whisper-base-en').style.display = 'none';
+                document.getElementById('fetch-whisper-tiny').style.display = 'none';
+                document.getElementById('fetch-whisper-base').style.display = 'none';
             }
 
             // fetch a remote file from remote URL using the Fetch API
index 6c2e0e0e65e91aae4ea842ef5958f8ad3101acee..4f23cde40b20c2905f61f4a9e6bf18863b9a5291 100644 (file)
@@ -1042,7 +1042,7 @@ static bool whisper_model_load(const std::string & fname, whisper_context & wctx
 
             fin.read(reinterpret_cast<char *>(tensor->data), ggml_nbytes(tensor));
 
-            //printf("%24s - [%5d, %5d], type = %6s, %6.2f MB\n", name.data(), ne[0], ne[1], ftype == 0 ? "float" : "f16", ggml_nbytes(tensor)/1024.0/1024.0);
+            //printf("%48s - [%5d, %5d, %5d], type = %6s, %6.2f MB\n", name.data(), ne[0], ne[1], ne[2], ftype == 0 ? "float" : "f16", ggml_nbytes(tensor)/1024.0/1024.0);
             total_size += ggml_nbytes(tensor);
             model.n_loaded++;
         }
@@ -2708,7 +2708,7 @@ int whisper_full(
 
                 //{
                 //    const auto tt = token.pt > 0.10 ? ctx->vocab.id_to_token[token.tid] : "[?]";
-                //    printf("%s: %10s %6.3f '%s'\n", __func__, tt.c_str(), token.pt, ctx->vocab.id_to_token[token.id].c_str());
+                //    printf("%s: %10s %6d %6.3f '%s'\n", __func__, tt.c_str(), token.id, token.pt, ctx->vocab.id_to_token[token.id].c_str());
                 //}
 
                 // end of text token