Spaces:
Sleeping
Sleeping
Deploy Myco from CI
Browse files- game/engine.py +2 -1
game/engine.py
CHANGED
|
@@ -2,6 +2,7 @@
|
|
| 2 |
|
| 3 |
import os
|
| 4 |
import random
|
|
|
|
| 5 |
|
| 6 |
from game.catalog import load_mushrooms
|
| 7 |
from game.state import collection_contains, mushroom_from_state, welcome_history
|
|
@@ -267,7 +268,7 @@ def _companion_answer(message, current, context):
|
|
| 267 |
return _fallback_companion_answer(current, context)
|
| 268 |
return answer
|
| 269 |
|
| 270 |
-
|
| 271 |
def _local_pipeline_answer(message, current, context):
|
| 272 |
print("PIPELINE ANSWER CALLED")
|
| 273 |
pipe = _get_pipeline()
|
|
|
|
| 2 |
|
| 3 |
import os
|
| 4 |
import random
|
| 5 |
+
import spaces
|
| 6 |
|
| 7 |
from game.catalog import load_mushrooms
|
| 8 |
from game.state import collection_contains, mushroom_from_state, welcome_history
|
|
|
|
| 268 |
return _fallback_companion_answer(current, context)
|
| 269 |
return answer
|
| 270 |
|
| 271 |
+
@spaces.GPU
|
| 272 |
def _local_pipeline_answer(message, current, context):
|
| 273 |
print("PIPELINE ANSWER CALLED")
|
| 274 |
pipe = _get_pipeline()
|