Ankerkraut commited on
Commit
d5435b5
·
1 Parent(s): d0fc0e2

add gloabal var

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -62,6 +62,7 @@ _model_cache = None
62
 
63
  @spaces.GPU
64
  def get_model():
 
65
  print(f"Model: {_model_cache}")
66
  if _model_cache is None:
67
  # Load model only if it's not already loaded
 
62
 
63
  @spaces.GPU
64
  def get_model():
65
+ global _model_cache
66
  print(f"Model: {_model_cache}")
67
  if _model_cache is None:
68
  # Load model only if it's not already loaded