S-4-G-4-R commited on
Commit
4246a14
·
verified ·
1 Parent(s): 8721f9c

Update ui/gpu.py

Browse files
Files changed (1) hide show
  1. ui/gpu.py +1 -1
ui/gpu.py CHANGED
@@ -28,7 +28,7 @@ import spaces
28
  ON_ZEROGPU = os.getenv("SPACES_ZERO_GPU", "").lower() in ("1", "t", "true")
29
 
30
  # The device to use *inside* a GPU window. Outside one, always "cpu".
31
- GPU_DEVICE = cpu #"cuda" if ON_ZEROGPU else "cpu"
32
 
33
  # Generous but bounded. The window has to cover PDF text extraction and chunking
34
  # (CPU work that unavoidably happens inside build_vectorstore) plus the encode
 
28
  ON_ZEROGPU = os.getenv("SPACES_ZERO_GPU", "").lower() in ("1", "t", "true")
29
 
30
  # The device to use *inside* a GPU window. Outside one, always "cpu".
31
+ GPU_DEVICE = "cpu" #"cuda" if ON_ZEROGPU else "cpu"
32
 
33
  # Generous but bounded. The window has to cover PDF text extraction and chunking
34
  # (CPU work that unavoidably happens inside build_vectorstore) plus the encode