Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,7 @@ def encode_audio(audio_path):
|
|
68 |
print(f"Encoding error: {str(e)}")
|
69 |
return None, f"Error encoding audio: {str(e)}"
|
70 |
|
71 |
-
@spaces.GPU(duration=
|
72 |
def decode_tokens(token_file):
|
73 |
"""Decode tokens to audio"""
|
74 |
# Ensure the file exists and has content
|
@@ -118,7 +118,7 @@ def decode_tokens(token_file):
|
|
118 |
print(f"Decoding error: {str(e)}")
|
119 |
return None, f"Error decoding tokens: {str(e)}"
|
120 |
|
121 |
-
@spaces.GPU(duration=
|
122 |
def process_both(audio_path):
|
123 |
"""Encode and then decode the audio without saving intermediate files"""
|
124 |
try:
|
|
|
68 |
print(f"Encoding error: {str(e)}")
|
69 |
return None, f"Error encoding audio: {str(e)}"
|
70 |
|
71 |
+
@spaces.GPU(duration=340)
|
72 |
def decode_tokens(token_file):
|
73 |
"""Decode tokens to audio"""
|
74 |
# Ensure the file exists and has content
|
|
|
118 |
print(f"Decoding error: {str(e)}")
|
119 |
return None, f"Error decoding tokens: {str(e)}"
|
120 |
|
121 |
+
@spaces.GPU(duration=360)
|
122 |
def process_both(audio_path):
|
123 |
"""Encode and then decode the audio without saving intermediate files"""
|
124 |
try:
|