Steveeeeeeen HF Staff commited on
Commit
20f4280
·
verified ·
1 Parent(s): 996c06e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -37,7 +37,6 @@ class TaDiCodecTTSDemo:
37
  print(f"Error loading model: {e}")
38
  self.pipeline = None
39
 
40
- @spaces.GPU(duration=120)
41
  def synthesize_speech(self, text, reference_audio=None, reference_text=""):
42
  """
43
  Synthesize speech from text using TaDiCodec TTS
@@ -66,7 +65,12 @@ class TaDiCodecTTSDemo:
66
  return None, "Demo mode - TaDiCodec model not available. Please install the required models."
67
 
68
  except Exception as e:
69
- return None, f"Error during synthesis: {str(e)}"
 
 
 
 
 
70
 
71
  # Initialize the demo
72
  demo_instance = TaDiCodecTTSDemo()
 
37
  print(f"Error loading model: {e}")
38
  self.pipeline = None
39
 
 
40
  def synthesize_speech(self, text, reference_audio=None, reference_text=""):
41
  """
42
  Synthesize speech from text using TaDiCodec TTS
 
65
  return None, "Demo mode - TaDiCodec model not available. Please install the required models."
66
 
67
  except Exception as e:
68
+ return None, f"Error duringSpeaker 0: We're really excited to dive into today's topic.
69
+ Speaker 1: Absolutely, it’s something I’ve been passionate about for a while.
70
+ Speaker 0: Maybe we can start with a quick introduction—can you tell our listeners a bit about your background?
71
+ Speaker 1: Of course! I started working in this field about ten years ago, and since then I've been exploring how technology can shape the way we live and connect.
72
+ Speaker 0: That’s fascinating. What first inspired you to get into this area?
73
+ Speaker 1: Honestly, curiosity. I’ve always loved solving problems, and I realized early on that innovation often comes from asking the right questions. synthesis: {str(e)}"
74
 
75
  # Initialize the demo
76
  demo_instance = TaDiCodecTTSDemo()