Factor Studios commited on
Commit
fa61f70
·
verified ·
1 Parent(s): 061cd90

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +3 -0
server.py CHANGED
@@ -17,6 +17,9 @@ app = FastAPI()
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"
 
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"