Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -79,7 +79,7 @@ def redistribute_codes(code_list):
|
|
| 79 |
return audio_hat
|
| 80 |
|
| 81 |
@spaces.GPU(duration=60)
|
| 82 |
-
def infer(sample_audio_path, target_text, temperature, top_p,
|
| 83 |
if not target_text or not target_text.strip():
|
| 84 |
gr.Warning("Please input text to generate audio.")
|
| 85 |
return None, None
|
|
|
|
| 79 |
return audio_hat
|
| 80 |
|
| 81 |
@spaces.GPU(duration=60)
|
| 82 |
+
def infer(sample_audio_path, target_text, temperature, top_p, repetition_penalty, progress=gr.Progress()):
|
| 83 |
if not target_text or not target_text.strip():
|
| 84 |
gr.Warning("Please input text to generate audio.")
|
| 85 |
return None, None
|