Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -333,7 +333,7 @@ Example JSON structure:
|
|
333 |
**inputs,
|
334 |
generation_config=self.generation_config,
|
335 |
pad_token_id=self.tokenizer.pad_token_id,
|
336 |
-
attention_mask=inputs.get('attention_mask'),
|
337 |
use_cache=True
|
338 |
)
|
339 |
|
@@ -367,7 +367,7 @@ Example JSON structure:
|
|
367 |
add_log(f"🔍 Traceback: {traceback.format_exc()}")
|
368 |
|
369 |
# Return robust fallback
|
370 |
-
return self.create_fallback_podcast("Welcome to our
|
371 |
|
372 |
async def tts_generate(self, text: str, speaker: int, speaker1: str, speaker2: str) -> str:
|
373 |
"""Improved TTS generation with better error handling - CRITICAL FIX #7"""
|
|
|
333 |
**inputs,
|
334 |
generation_config=self.generation_config,
|
335 |
pad_token_id=self.tokenizer.pad_token_id,
|
336 |
+
# attention_mask=inputs.get('attention_mask'),
|
337 |
use_cache=True
|
338 |
)
|
339 |
|
|
|
367 |
add_log(f"🔍 Traceback: {traceback.format_exc()}")
|
368 |
|
369 |
# Return robust fallback
|
370 |
+
return self.create_fallback_podcast("Welcome to our podcast")
|
371 |
|
372 |
async def tts_generate(self, text: str, speaker: int, speaker1: str, speaker2: str) -> str:
|
373 |
"""Improved TTS generation with better error handling - CRITICAL FIX #7"""
|