Spaces:
Running
Running
Update app.py
Browse files1745 unmodified lines17461747174817491750175117521745 unmodified lines'aiff', 'webm', 'ac3')):audio_paths.append(os.path.join('./audios',filename).replace('\\', '/'))print(audio_paths)return {"choices": sorted(audio_paths), "__type__": "update"}def custom_voice(1745 unmodified lines17461747174817491750175117521753175417551745 unmodified lines'aiff', 'webm', 'ac3')):audio_paths.append(os.path.join('./audios',filename).replace('\\', '/'))print(audio_paths)most_recent_audio = ""if audio_paths:most_recent_audio = max(audio_paths, key=os.path.getctime)return {"choices": sorted(audio_paths), "value": most_recent_audio, "__type__": "update"}def custom_voice(
app.py+4-1