Spaces:
Runtime error
Runtime error
srinivasbilla
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -104,7 +104,7 @@ def infer(sample_audio_path, target_text, progress=gr.Progress()):
|
|
104 |
# Generate the speech autoregressively
|
105 |
outputs = model.generate(
|
106 |
input_ids,
|
107 |
-
max_length=
|
108 |
eos_token_id= speech_end_id ,
|
109 |
do_sample=True,
|
110 |
top_p=1,
|
|
|
104 |
# Generate the speech autoregressively
|
105 |
outputs = model.generate(
|
106 |
input_ids,
|
107 |
+
max_length=2500, # We trained our model with a max length of 2048
|
108 |
eos_token_id= speech_end_id ,
|
109 |
do_sample=True,
|
110 |
top_p=1,
|