byte-vortex commited on
Commit
da74a37
·
verified ·
1 Parent(s): 46a5d1b

Deploy Myco from CI

Browse files
Files changed (1) hide show
  1. game/engine.py +5 -0
game/engine.py CHANGED
@@ -1,5 +1,10 @@
1
  """Core Myco gameplay — LLM is the primary game engine."""
2
 
 
 
 
 
 
3
  import os
4
  import random
5
 
 
1
  """Core Myco gameplay — LLM is the primary game engine."""
2
 
3
+ try:
4
+ import spaces # must be imported before any CUDA/transformers code on HF Spaces
5
+ except ImportError:
6
+ pass # not running on HF Spaces, ignore
7
+
8
  import os
9
  import random
10