Update ui/gpu.py
Browse files
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
|