lcipolina commited on
Commit
cdbde5a
·
verified ·
1 Parent(s): 0dbc02b

Fixed imports

Browse files
Files changed (1) hide show
  1. app.py +5 -12
app.py CHANGED
@@ -31,7 +31,7 @@ import logging
31
  logging.basicConfig(level=logging.INFO)
32
  log = logging.getLogger("arena_space")
33
 
34
- # Optional transformers import (only needed if your backend uses it here)
35
  try:
36
  from transformers import pipeline # noqa: F401
37
  except Exception:
@@ -44,21 +44,14 @@ if str(src_path) not in sys.path:
44
 
45
  # Try to import game registry
46
  from game_reasoning_arena.arena.games.registry import registry as games_registry
47
-
48
-
49
- # Optional: import backend & LLM registry
50
- try:
51
- from game_reasoning_arena.backends.huggingface_backend import (
52
  HuggingFaceBackend,
53
  )
54
- from game_reasoning_arena.backends import (
55
  initialize_llm_registry, LLM_REGISTRY,
56
  )
57
- BACKEND_SYSTEM_AVAILABLE = True
58
- log.info("Backend system available - using proper LLM infrastructure.")
59
- except Exception as e:
60
- BACKEND_SYSTEM_AVAILABLE = False
61
- log.warning("Backend system not available: %s", e)
62
 
63
  # -----------------------------------------------------------------------------
64
  # Config & constants
 
31
  logging.basicConfig(level=logging.INFO)
32
  log = logging.getLogger("arena_space")
33
 
34
+ # Optional transformers import
35
  try:
36
  from transformers import pipeline # noqa: F401
37
  except Exception:
 
44
 
45
  # Try to import game registry
46
  from game_reasoning_arena.arena.games.registry import registry as games_registry
47
+ from game_reasoning_arena.backends.huggingface_backend import (
 
 
 
 
48
  HuggingFaceBackend,
49
  )
50
+ from game_reasoning_arena.backends import (
51
  initialize_llm_registry, LLM_REGISTRY,
52
  )
53
+
54
+ BACKEND_SYSTEM_AVAILABLE = True
 
 
 
55
 
56
  # -----------------------------------------------------------------------------
57
  # Config & constants