fantaxy commited on
Commit
ee944cf
Β·
verified Β·
1 Parent(s): 90413ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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, ν•„μš”μ— 따라 μ„€μ •