Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
aa7c4d4
1
Parent(s):
af632c6
temp/sample
Browse files
app.py
CHANGED
@@ -69,9 +69,7 @@ def gen_tts(text, description):
|
|
69 |
prompt = tokenizer(preprocess(text), return_tensors="pt").to(device)
|
70 |
|
71 |
set_seed(SEED)
|
72 |
-
generation = model.generate(
|
73 |
-
input_ids=inputs.input_ids, prompt_input_ids=prompt.input_ids, do_sample=True, temperature=1.0
|
74 |
-
)
|
75 |
audio_arr = generation.cpu().numpy().squeeze()
|
76 |
|
77 |
return SAMPLE_RATE, audio_arr
|
|
|
69 |
prompt = tokenizer(preprocess(text), return_tensors="pt").to(device)
|
70 |
|
71 |
set_seed(SEED)
|
72 |
+
generation = model.generate(input_ids=inputs.input_ids, prompt_input_ids=prompt.input_ids)
|
|
|
|
|
73 |
audio_arr = generation.cpu().numpy().squeeze()
|
74 |
|
75 |
return SAMPLE_RATE, audio_arr
|