Stremly commited on
Commit
4c75728
·
verified ·
1 Parent(s): 65f9291

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -39,7 +39,7 @@ def navigate(screenshot, task: str, platform: str, history):
39
  history (list | str | None): Previous messages list. Accepts either an
40
  actual Python list (via gr.JSON) or a JSON/Python‑literal string.
41
  """
42
-
43
  # ------- on-demand model / processor load -------------------------
44
  if _MODEL is None:
45
  from transformers import BitsAndBytesConfig
 
39
  history (list | str | None): Previous messages list. Accepts either an
40
  actual Python list (via gr.JSON) or a JSON/Python‑literal string.
41
  """
42
+ global _MODEL, _PROCESSOR
43
  # ------- on-demand model / processor load -------------------------
44
  if _MODEL is None:
45
  from transformers import BitsAndBytesConfig