None1145 commited on
Commit
f76a70e
·
verified ·
1 Parent(s): fd604c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -39,8 +39,10 @@ def compare_csv_files():
39
  def get_audio_html(uuid):
40
  file_1_5 = f"fish-speech-1.5/{uuid}.wav"
41
  file_1_4 = f"fish-speech-1.4/{uuid}.wav"
42
- audio_1_5 = f'<audio controls src="https://huggingface.co/spaces/None1145/Fish-Speech-Benchmark/resolve/main/{file_1_5}"></audio>' if os.path.exists(file_1_5) else "Missing Audio"
43
- audio_1_4 = f'<audio controls src="https://huggingface.co/spaces/None1145/Fish-Speech-Benchmark/resolve/main/{file_1_4}"></audio>' if os.path.exists(file_1_4) else "Missing Audio"
 
 
44
  return audio_1_5, audio_1_4
45
 
46
  merged_df["Audio_1.5"], merged_df["Audio_1.4"] = zip(*merged_df["SourceText"].apply(get_audio_html))
 
39
  def get_audio_html(uuid):
40
  file_1_5 = f"fish-speech-1.5/{uuid}.wav"
41
  file_1_4 = f"fish-speech-1.4/{uuid}.wav"
42
+ # audio_1_5 = f'<audio controls src="https://huggingface.co/spaces/None1145/Fish-Speech-Benchmark/resolve/main/{file_1_5}"></audio>' if os.path.exists(file_1_5) else "Missing Audio"
43
+ # audio_1_4 = f'<audio controls src="https://huggingface.co/spaces/None1145/Fish-Speech-Benchmark/resolve/main/{file_1_4}"></audio>' if os.path.exists(file_1_4) else "Missing Audio"
44
+ audio_1_5 = f'<audio controls src="https://huggingface.co/spaces/None1145/Fish-Speech-Benchmark/resolve/main/{file_1_5}"></audio>'
45
+ audio_1_4 = f'<audio controls src="https://huggingface.co/spaces/None1145/Fish-Speech-Benchmark/resolve/main/{file_1_4}"></audio>'
46
  return audio_1_5, audio_1_4
47
 
48
  merged_df["Audio_1.5"], merged_df["Audio_1.4"] = zip(*merged_df["SourceText"].apply(get_audio_html))