Exit elevenlabs_tts if streaming is enabled

This commit is contained in:
oobabooga 2023-03-20 11:49:42 -03:00 committed by GitHub
parent 31ab2be8ef
commit a90f507abe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,9 @@ wav_idx = 0
user = ElevenLabsUser(params['api_key'])
user_info = None
if not shared.args.no_stream:
print("Please add --no-stream. This extension is not meant to be used with streaming.")
raise ValueError
# Check if the API is valid and refresh the UI accordingly.
def check_valid_api():