ljy266987 commited on
Commit
a9c8347
β€’
1 Parent(s): 679081c

add psutil

Browse files
Files changed (2) hide show
  1. app.py +10 -1
  2. spaces/__init__.py +0 -9
app.py CHANGED
@@ -1,8 +1,17 @@
1
- import spaces
2
  import os
3
  os.system('pip install transformers -U')
4
  os.system('pip install modelscope -U')
5
  os.system('pip install accelerate')
 
 
 
 
 
 
 
 
 
 
6
  from threading import Thread
7
  from typing import Iterator
8
 
 
 
1
  import os
2
  os.system('pip install transformers -U')
3
  os.system('pip install modelscope -U')
4
  os.system('pip install accelerate')
5
+ os.system('pip install psutil')
6
+
7
+ # θŽ·ε–ε…¨ιƒ¨ηŽ―ε’ƒε˜ι‡
8
+ env_vars = os.environ
9
+
10
+ # ιεŽ†εΉΆζ‰“ε°ηŽ―ε’ƒε˜ι‡
11
+ for key, value in env_vars.items():
12
+ print(f"{key}: {value}")
13
+
14
+ import spaces
15
  from threading import Thread
16
  from typing import Iterator
17
 
spaces/__init__.py CHANGED
@@ -13,15 +13,6 @@ from .gradio import gradio_auto_wrap
13
  from .gradio import disable_gradio_auto_wrap
14
  from .gradio import enable_gradio_auto_wrap
15
 
16
- import os
17
-
18
- # θŽ·ε–ε…¨ιƒ¨ηŽ―ε’ƒε˜ι‡
19
- env_vars = os.environ
20
-
21
- # ιεŽ†εΉΆζ‰“ε°ηŽ―ε’ƒε˜ι‡
22
- for key, value in env_vars.items():
23
- print(f"{key}: {value}")
24
-
25
 
26
  __all__ = [
27
  'GPU',
 
13
  from .gradio import disable_gradio_auto_wrap
14
  from .gradio import enable_gradio_auto_wrap
15
 
 
 
 
 
 
 
 
 
 
16
 
17
  __all__ = [
18
  'GPU',