Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
c77ba0b
1
Parent(s):
0faafc9
decrease GPU duration to 180
Browse files
app.py
CHANGED
@@ -435,7 +435,7 @@ def maskgct_inference(
|
|
435 |
return total_recovered_audio
|
436 |
|
437 |
|
438 |
-
@spaces.GPU(duration=
|
439 |
def inference(
|
440 |
prompt_wav,
|
441 |
target_text,
|
@@ -477,7 +477,7 @@ iface = gr.Interface(
|
|
477 |
fn=inference,
|
478 |
inputs=[
|
479 |
gr.Audio(label="Upload Prompt Wav", type="filepath"),
|
480 |
-
gr.Textbox(label="Target Text", max_length=1024),
|
481 |
gr.Number(
|
482 |
label="Target Duration (in seconds), if the target duration is less than 0, the system will estimate a duration.", value=-1
|
483 |
), # Removed 'optional=True'
|
|
|
435 |
return total_recovered_audio
|
436 |
|
437 |
|
438 |
+
@spaces.GPU(duration=180)
|
439 |
def inference(
|
440 |
prompt_wav,
|
441 |
target_text,
|
|
|
477 |
fn=inference,
|
478 |
inputs=[
|
479 |
gr.Audio(label="Upload Prompt Wav", type="filepath"),
|
480 |
+
gr.Textbox(label="Target Text(1024 characters at most)", max_length=1024),
|
481 |
gr.Number(
|
482 |
label="Target Duration (in seconds), if the target duration is less than 0, the system will estimate a duration.", value=-1
|
483 |
), # Removed 'optional=True'
|