Skip to content

Commit

Permalink
revert: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Sid Sharma committed May 7, 2024
1 parent bed6082 commit e863af0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
1 change: 0 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
}



def denormalise_top_p(top_p):
# returns top_p in the range [0.9, 1.0]
return round(0.9 + top_p / 100, 2)
Expand Down
15 changes: 0 additions & 15 deletions fam/llm/fast_inference.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import json
import os
import pathlib
import shutil
import tempfile
import time
Expand Down Expand Up @@ -194,19 +192,6 @@ def synthesise(self, text: str, spk_ref_path: str, top_p=0.95, guidance_scale=3.
)
)

# save metadata
json.dump(
{
"speaker": spk_ref_path,
"text": text,
"top_p": top_p,
"guidance_scale": guidance_scale,
"temperature": temperature,
"output": str(wav_file) + ".wav",
},
pathlib.Path(str(wav_file) + ".json").open("w"),
)

return str(wav_file) + ".wav"


Expand Down

0 comments on commit e863af0

Please sign in to comment.