Spaces:
Sleeping
Sleeping
Deploy Myco from CI
Browse files- 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 |
|