Spaces:
Sleeping
Sleeping
Update backend1.py
Browse files- backend1.py +1 -1
backend1.py
CHANGED
@@ -32,7 +32,7 @@ import time
|
|
32 |
import httpx
|
33 |
# Text-to-speech clients
|
34 |
client_1 = Client("ruslanmv/text-to-speech-fast")
|
35 |
-
client_2 = Client("ruslanmv/Text-To-Speech"
|
36 |
client_3 = Client("ruslanmv/Text-to-Voice-Transformers")
|
37 |
clients = [client_1, client_3,client_2]
|
38 |
# Text-to-speech function with rate limiting, retry mechanism, and client rotation
|
|
|
32 |
import httpx
|
33 |
# Text-to-speech clients
|
34 |
client_1 = Client("ruslanmv/text-to-speech-fast")
|
35 |
+
client_2 = Client("ruslanmv/Text-To-Speech") # Set timeout to 5 seconds
|
36 |
client_3 = Client("ruslanmv/Text-to-Voice-Transformers")
|
37 |
clients = [client_1, client_3,client_2]
|
38 |
# Text-to-speech function with rate limiting, retry mechanism, and client rotation
|