fffiloni commited on
Commit
0c32eee
1 Parent(s): 9c8f451

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -56,7 +56,13 @@ def infer(prompt, input_wav_file):
56
 
57
  wavfile.write('output.wav', sample_rate, output_dict['wav'])
58
 
59
-
 
 
 
 
 
 
60
  return "output.wav"
61
 
62
  gr.Interface(fn=infer,
 
56
 
57
  wavfile.write('output.wav', sample_rate, output_dict['wav'])
58
 
59
+ # List all the files and subdirectories in the given directory
60
+ contents = os.listdir(f"bark_voices/{file_name}")
61
+
62
+ # Print the contents
63
+ for item in contents:
64
+ print(item)
65
+
66
  return "output.wav"
67
 
68
  gr.Interface(fn=infer,