Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,12 @@
|
|
1 |
-
import
|
|
|
|
|
|
|
|
|
|
|
2 |
import shlex
|
3 |
import subprocess
|
|
|
4 |
import os
|
5 |
|
6 |
# ZeroGPU 환경 설정
|
|
|
1 |
+
import os
|
2 |
+
# ZeroGPU 환경 설정 - 가장 먼저 실행되어야 함!
|
3 |
+
os.environ['CUDA_VISIBLE_DEVICES'] = ''
|
4 |
+
os.environ['ZEROGPU'] = '1' # ZeroGPU 환경임을 표시
|
5 |
+
|
6 |
+
import spaces # spaces import는 환경 설정 후에
|
7 |
import shlex
|
8 |
import subprocess
|
9 |
+
|
10 |
import os
|
11 |
|
12 |
# ZeroGPU 환경 설정
|