Update ui/gpu.py
Browse files
ui/gpu.py
CHANGED
|
@@ -38,6 +38,7 @@ _VECTORIZE_SECONDS = 120
|
|
| 38 |
|
| 39 |
|
| 40 |
@spaces.GPU(duration=_VECTORIZE_SECONDS)
|
|
|
|
| 41 |
def vectorize_on_gpu(pdf_path: str) -> None:
|
| 42 |
"""Build and persist this paper's vectorstore with the embedder on GPU.
|
| 43 |
|
|
|
|
| 38 |
|
| 39 |
|
| 40 |
@spaces.GPU(duration=_VECTORIZE_SECONDS)
|
| 41 |
+
print(f"[GPU FN] pid={os.getpid()}, in ZeroGPU ctx: {os.environ.get('SPACES_ZERO_GPU')}")
|
| 42 |
def vectorize_on_gpu(pdf_path: str) -> None:
|
| 43 |
"""Build and persist this paper's vectorstore with the embedder on GPU.
|
| 44 |
|