Skip to content

Commit

Permalink
Fix gradio Path serialization error
Browse files Browse the repository at this point in the history
  • Loading branch information
litagin02 committed May 21, 2024
1 parent 053a6bf commit 2771fbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gradio_tabs/style_vectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def representative_wav_files_gradio(cluster_id, num_files=1):
closest_indices = representative_wav_files(cluster_id, num_files)
actual_num_files = len(closest_indices) # ファイル数が少ないときのため
return [
gr.Audio(wav_files[i], visible=True, label=wav_files[i])
gr.Audio(wav_files[i], visible=True, label=str(wav_files[i]))
for i in closest_indices
] + [gr.update(visible=False)] * (MAX_AUDIO_NUM - actual_num_files)

Expand Down

0 comments on commit 2771fbd

Please sign in to comment.