Fabrice-TIERCELIN commited on
Commit
33a2675
·
verified ·
1 Parent(s): 1e908b7

Ease to run it in local

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -5,7 +5,16 @@ import time
5
  import math
6
  import torch
7
  import random
8
- import spaces
 
 
 
 
 
 
 
 
 
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