Rausda6 commited on
Commit
553d273
·
verified ·
1 Parent(s): 30f7937

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 podcas")
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"""