Ease to run it in local
Browse files
app.py
CHANGED
@@ -5,7 +5,16 @@ import time
|
|
5 |
import math
|
6 |
import torch
|
7 |
import random
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
# By using XTTS you agree to CPML license https://coqui.ai/cpml
|
10 |
os.environ["COQUI_TOS_AGREED"] = "1"
|
11 |
|
|
|
5 |
import math
|
6 |
import torch
|
7 |
import random
|
8 |
+
|
9 |
+
try:
|
10 |
+
import spaces
|
11 |
+
except:
|
12 |
+
class spaces():
|
13 |
+
def GPU(*args, **kwargs):
|
14 |
+
def decorator(function):
|
15 |
+
return lambda *dummy_args, **dummy_kwargs: function(*dummy_args, **dummy_kwargs)
|
16 |
+
return decorator
|
17 |
+
|
18 |
# By using XTTS you agree to CPML license https://coqui.ai/cpml
|
19 |
os.environ["COQUI_TOS_AGREED"] = "1"
|
20 |
|