Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -109,7 +109,7 @@ def infer(sample_audio_path, target_text, progress=gr.Progress()):
|
|
109 |
# Generate the speech autoregressively
|
110 |
outputs = model.generate(
|
111 |
input_ids,
|
112 |
-
max_length=
|
113 |
eos_token_id= speech_end_id ,
|
114 |
do_sample=True,
|
115 |
top_p=1,
|
|
|
109 |
# Generate the speech autoregressively
|
110 |
outputs = model.generate(
|
111 |
input_ids,
|
112 |
+
max_length=2048, # We trained our model with a max length of 2048
|
113 |
eos_token_id= speech_end_id ,
|
114 |
do_sample=True,
|
115 |
top_p=1,
|