BALAKA commited on
Commit
8c42cdf
·
1 Parent(s): 94d8454
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -28,7 +28,7 @@ NEGATIVE_WORDS = set([
28
  CHUNK_DURATION_S = 5
29
  TARGET_SAMPLE_RATE = 16000
30
  MODEL_NAME = "airesearch/wav2vec2-large-xlsr-53-th"
31
- EXAMPLE_AUDIO_DIR = "audio_examples" # Directory for example audio files
32
 
33
  # --- Global Model and Processor ---
34
  try:
@@ -283,7 +283,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo: # Added a soft theme
283
  else:
284
  example_files_list = []
285
  for ext in ("*.wav", "*.mp3", "*.flac", "*.m4a", "*.ogg"): # Common audio extensions
286
- example_files_list.extend(glob(os.12path.join(EXAMPLE_AUDIO_DIR, ext)))
287
 
288
  if example_files_list:
289
  gr.Examples(
 
28
  CHUNK_DURATION_S = 5
29
  TARGET_SAMPLE_RATE = 16000
30
  MODEL_NAME = "airesearch/wav2vec2-large-xlsr-53-th"
31
+ EXAMPLE_AUDIO_DIR = "ex" # Directory for example audio files
32
 
33
  # --- Global Model and Processor ---
34
  try:
 
283
  else:
284
  example_files_list = []
285
  for ext in ("*.wav", "*.mp3", "*.flac", "*.m4a", "*.ogg"): # Common audio extensions
286
+ example_files_list.extend(glob(os.path.join(EXAMPLE_AUDIO_DIR, ext)))
287
 
288
  if example_files_list:
289
  gr.Examples(