Skip to content

Commit a92f413

Browse files
committed
tts : add header + minor fixes
ggml-ci
1 parent eabc921 commit a92f413

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

convert_hf_to_gguf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def prepare_tensors(self):
297297

298298
for new_name, data_torch in (self.modify_tensors(data_torch, name, bid)):
299299
# TODO: why do we squeeze here?
300-
#data = data_torch.squeeze().numpy()
300+
# data = data_torch.squeeze().numpy()
301301
data = data_torch.numpy()
302302

303303
# if data ends up empty, it means data_torch was a scalar tensor -> restore

examples/tts/tts.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#include <algorithm>
88
#include <cstdio>
9+
#include <cmath>
910
#include <string>
1011
#include <vector>
1112
#include <fstream>
@@ -354,9 +355,9 @@ int main(int argc, char ** argv) {
354355

355356
// TODO: not sure if this is correct
356357
{
358+
std::string prompt_clean;
357359
std::string prompt_user = params.prompt;
358-
std::string prompt_clean = "";
359-
//string_replace_all(prompt_user, " ", "<|text_sep|>");
360+
360361
for (auto & c : prompt_user) {
361362
if (c == ' ') {
362363
prompt_clean += "<|text_sep|>";

0 commit comments

Comments
 (0)