SohomToom commited on
Commit
132ccac
·
verified ·
1 Parent(s): c479b56

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ def extract_text(docx_file):
16
  def generate_audio(docx_file):
17
  text = extract_text(docx_file.name)
18
  with tempfile.NamedTemporaryFile(suffix=".wav", delete=False) as temp_audio:
19
- tts.tts_to_file(text=text, file_path=temp_audio.name)
20
  return temp_audio.name
21
 
22
  # Gradio UI
 
16
  def generate_audio(docx_file):
17
  text = extract_text(docx_file.name)
18
  with tempfile.NamedTemporaryFile(suffix=".wav", delete=False) as temp_audio:
19
+ tts.tts_to_file(text=text, file_path="output.wav")
20
  return temp_audio.name
21
 
22
  # Gradio UI