ahm3texe commited on
Commit
57cd64c
·
verified ·
1 Parent(s): 09a9ee3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -120,7 +120,9 @@ def set_speed(choice):
120
 
121
  def start_game_server():
122
  global GAME_INSTANCE, BRAIN_WEIGHTS_JSON
123
-
 
 
124
  pygame.init()
125
  brain = load_brain()
126
  if not brain: return False
 
120
 
121
  def start_game_server():
122
  global GAME_INSTANCE, BRAIN_WEIGHTS_JSON
123
+
124
+ import os
125
+ os.environ["SDL_VIDEODRIVER"] = "dummy"
126
  pygame.init()
127
  brain = load_brain()
128
  if not brain: return False