Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,9 @@ import subprocess
|
|
9 |
import threading
|
10 |
import torch
|
11 |
from subprocess import getoutput
|
|
|
|
|
|
|
12 |
|
13 |
# νκ²½ λ³μ λμ μ½λ λ΄μμ μ§μ μ€μ
|
14 |
is_shared_ui = False # λλ True, νμμ λ°λΌ μ€μ
|
|
|
9 |
import threading
|
10 |
import torch
|
11 |
from subprocess import getoutput
|
12 |
+
import torch
|
13 |
+
torch.cuda.set_device(1) # GPU 1λ² μ¬μ©
|
14 |
+
torch.backends.cudnn.enabled = True
|
15 |
|
16 |
# νκ²½ λ³μ λμ μ½λ λ΄μμ μ§μ μ€μ
|
17 |
is_shared_ui = False # λλ True, νμμ λ°λΌ μ€μ
|