dpc commited on
Commit
5d2ab06
·
1 Parent(s): 574ab28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -113,7 +113,7 @@ def prepare_sentences(text, lang="mya"):
113
  return sentences
114
 
115
 
116
- def list_dir():
117
  # Get the current directory
118
  current_dir = os.getcwd()
119
  print(current_dir)
@@ -149,7 +149,7 @@ def combine_wav(source_dir, stamp, lang):
149
  sf.write(combined_file_path, combined_data, sr)
150
 
151
  shutil.rmtree(source_dir)
152
- list_dir()
153
 
154
  # Display the combined audio in the Hugging Face Space app
155
  return combined_file_path
 
113
  return sentences
114
 
115
 
116
+ def list_dir(lang):
117
  # Get the current directory
118
  current_dir = os.getcwd()
119
  print(current_dir)
 
149
  sf.write(combined_file_path, combined_data, sr)
150
 
151
  shutil.rmtree(source_dir)
152
+ list_dir(lang)
153
 
154
  # Display the combined audio in the Hugging Face Space app
155
  return combined_file_path