Spaces:
Sleeping
Sleeping
Factor Studios
commited on
Upload server.py
Browse files
server.py
CHANGED
|
@@ -17,9 +17,6 @@ app = FastAPI()
|
|
| 17 |
class VirtualGPUServer:
|
| 18 |
def __init__(self):
|
| 19 |
self.base_path = Path(__file__).parent / "storage"
|
| 20 |
-
if not self.base_path.exists():
|
| 21 |
-
self.base_path.mkdir(parents=True)
|
| 22 |
-
|
| 23 |
self.vram_path = self.base_path / "vram_blocks"
|
| 24 |
self.state_path = self.base_path / "gpu_state"
|
| 25 |
self.cache_path = self.base_path / "cache"
|
|
|
|
| 17 |
class VirtualGPUServer:
|
| 18 |
def __init__(self):
|
| 19 |
self.base_path = Path(__file__).parent / "storage"
|
|
|
|
|
|
|
|
|
|
| 20 |
self.vram_path = self.base_path / "vram_blocks"
|
| 21 |
self.state_path = self.base_path / "gpu_state"
|
| 22 |
self.cache_path = self.base_path / "cache"
|