Spaces:
Sleeping
Sleeping
Commit ·
77a7a29
1
Parent(s): bbd5752
Revert to Qwen models while Llama access is pending.
Browse filesUse Qwen2.5-7B for the agent and Qwen2-VL-7B for vision so the Space works without gated Meta model approval.
agent.py
CHANGED
|
@@ -114,7 +114,8 @@ class BasicAgent:
|
|
| 114 |
"""Full GAIA agent with search, web, and multimodal file tools."""
|
| 115 |
|
| 116 |
def __init__(self):
|
| 117 |
-
|
|
|
|
| 118 |
provider = os.getenv("HF_INFERENCE_PROVIDER", "auto")
|
| 119 |
token = os.getenv("HF_TOKEN")
|
| 120 |
|
|
|
|
| 114 |
"""Full GAIA agent with search, web, and multimodal file tools."""
|
| 115 |
|
| 116 |
def __init__(self):
|
| 117 |
+
# Open models — no Meta/Llama gating. Override via HF_MODEL_ID Space secret.
|
| 118 |
+
model_id = os.getenv("HF_MODEL_ID", "Qwen/Qwen2.5-7B-Instruct")
|
| 119 |
provider = os.getenv("HF_INFERENCE_PROVIDER", "auto")
|
| 120 |
token = os.getenv("HF_TOKEN")
|
| 121 |
|
tools.py
CHANGED
|
@@ -25,7 +25,7 @@ def _hf_client(*, for_chat: bool = False) -> InferenceClient:
|
|
| 25 |
|
| 26 |
|
| 27 |
def _vision_model() -> str:
|
| 28 |
-
return os.getenv("HF_VISION_MODEL", "
|
| 29 |
|
| 30 |
|
| 31 |
def _asr_model() -> str:
|
|
|
|
| 25 |
|
| 26 |
|
| 27 |
def _vision_model() -> str:
|
| 28 |
+
return os.getenv("HF_VISION_MODEL", "Qwen/Qwen2-VL-7B-Instruct")
|
| 29 |
|
| 30 |
|
| 31 |
def _asr_model() -> str:
|