Spaces:
Runtime error
Runtime error
ljy266987
commited on
Commit
Β·
a9c8347
1
Parent(s):
679081c
add psutil
Browse files- app.py +10 -1
- 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',
|