Vijish commited on
Commit
798e770
1 Parent(s): 2cfa6a7

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +2 -3
handler.py CHANGED
@@ -52,15 +52,14 @@ class EndpointHandler:
52
  if not edge_tts_voice:
53
  raise ValueError(f"Invalid voice '{selected_voice}'.")
54
 
55
- info, edge_tts_output_path, tts_output_data, edge_output_file = asyncio.run(tts(
56
  model_name,
57
  tts_text,
58
  edge_tts_voice,
59
  slang_rate,
60
  use_uploaded_voice,
61
  voice_upload_file
62
- ))
63
-
64
  if edge_output_file and os.path.exists(edge_output_file):
65
  os.remove(edge_output_file)
66
 
 
52
  if not edge_tts_voice:
53
  raise ValueError(f"Invalid voice '{selected_voice}'.")
54
 
55
+ info, edge_tts_output_path, tts_output_data, edge_output_file = tts(
56
  model_name,
57
  tts_text,
58
  edge_tts_voice,
59
  slang_rate,
60
  use_uploaded_voice,
61
  voice_upload_file
62
+ )
 
63
  if edge_output_file and os.path.exists(edge_output_file):
64
  os.remove(edge_output_file)
65