Skip to content

Commit

Permalink
Fix cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
WeberJulian committed Nov 16, 2023
1 parent 6c11b5a commit c3fefb5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def predict_speaker(wav_file: UploadFile):
temp_audio_name = next(tempfile._get_candidate_names())
with open(temp_audio_name, "wb") as temp, torch.inference_mode():
temp.write(io.BytesIO(wav_file.file.read()).getbuffer())
gpt_cond_latent, _, speaker_embedding = model.get_conditioning_latents(
gpt_cond_latent, speaker_embedding = model.get_conditioning_latents(
temp_audio_name
)
return {
Expand Down Expand Up @@ -110,8 +110,10 @@ class StreamingInputs(BaseModel):
"nl",
"cs",
"ar",
"zh-cn",
"zh",
"ja",
"hu",
"ko",
]
add_wav_header: bool = True
stream_chunk_size: str = "20"
Expand Down

0 comments on commit c3fefb5

Please sign in to comment.