owiedotch commited on
Commit
f28e066
·
verified ·
1 Parent(s): 9b8102d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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=60)
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=80)
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: