mrfakename commited on
Commit
dabfbf4
·
verified ·
1 Parent(s): 9941624

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -1,6 +1,12 @@
1
  # ruff: noqa: E402
2
  # Above allows ruff to ignore E402: module level import not at top of file
3
 
 
 
 
 
 
 
4
  import gc
5
  import json
6
  import re
@@ -17,12 +23,6 @@ import torchaudio
17
  from cached_path import cached_path
18
  from transformers import AutoModelForCausalLM, AutoTokenizer
19
 
20
- try:
21
- import spaces
22
-
23
- USING_SPACES = True
24
- except ImportError:
25
- USING_SPACES = False
26
 
27
 
28
  def gpu_decorator(func):
 
1
  # ruff: noqa: E402
2
  # Above allows ruff to ignore E402: module level import not at top of file
3
 
4
+ try:
5
+ import spaces
6
+
7
+ USING_SPACES = True
8
+ except ImportError:
9
+ USING_SPACES = False
10
  import gc
11
  import json
12
  import re
 
23
  from cached_path import cached_path
24
  from transformers import AutoModelForCausalLM, AutoTokenizer
25
 
 
 
 
 
 
 
26
 
27
 
28
  def gpu_decorator(func):