Spaces:
Running
Running
Update app.py
Browse files
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
|