Spaces:
Sleeping
Sleeping
Commit ·
285dd15
1
Parent(s): 25ac9d7
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,6 +21,13 @@ os.environ['CURL_CA_BUNDLE'] = ''
|
|
| 21 |
from rmvpe import RMVPE
|
| 22 |
from vc_infer_pipeline import VC
|
| 23 |
import ssl
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
ssl._create_default_https_context = ssl._create_unverified_context
|
| 25 |
|
| 26 |
logging.getLogger("fairseq").setLevel(logging.WARNING)
|
|
|
|
| 21 |
from rmvpe import RMVPE
|
| 22 |
from vc_infer_pipeline import VC
|
| 23 |
import ssl
|
| 24 |
+
import requests
|
| 25 |
+
|
| 26 |
+
# Set a custom timeout for all requests (adjust the timeout as needed)
|
| 27 |
+
requests.adapters.DEFAULT_RETRIES = 3 # Number of retries on failure
|
| 28 |
+
requests.adapters.DEFAULT_TIMEOUT = 60
|
| 29 |
+
|
| 30 |
+
|
| 31 |
ssl._create_default_https_context = ssl._create_unverified_context
|
| 32 |
|
| 33 |
logging.getLogger("fairseq").setLevel(logging.WARNING)
|