Update app.py
Browse files
app.py
CHANGED
|
@@ -75,7 +75,7 @@ class BasicAgent:
|
|
| 75 |
Agente simples que usa diretamente o InferenceClient do Hugging Face
|
| 76 |
para responder as questões do GAIA.
|
| 77 |
|
| 78 |
-
Não usa ferramentas externas (search), mas é
|
| 79 |
"""
|
| 80 |
|
| 81 |
def __init__(self):
|
|
@@ -87,13 +87,12 @@ class BasicAgent:
|
|
| 87 |
"HF_TOKEN not found! Configure it como Secret em Settings → Variables."
|
| 88 |
)
|
| 89 |
|
| 90 |
-
#
|
| 91 |
self.client = InferenceClient(
|
| 92 |
-
model="
|
| 93 |
token=hf_token,
|
| 94 |
)
|
| 95 |
|
| 96 |
-
# prompt base com regras de EXACT MATCH
|
| 97 |
self.system_instructions = (
|
| 98 |
"You are solving GAIA benchmark questions.\n"
|
| 99 |
"Rules:\n"
|
|
|
|
| 75 |
Agente simples que usa diretamente o InferenceClient do Hugging Face
|
| 76 |
para responder as questões do GAIA.
|
| 77 |
|
| 78 |
+
Não usa ferramentas externas (search), mas é estável no Space.
|
| 79 |
"""
|
| 80 |
|
| 81 |
def __init__(self):
|
|
|
|
| 87 |
"HF_TOKEN not found! Configure it como Secret em Settings → Variables."
|
| 88 |
)
|
| 89 |
|
| 90 |
+
# 🔹 Modelo que suporta text-generation via Inference API
|
| 91 |
self.client = InferenceClient(
|
| 92 |
+
model="mistralai/Mixtral-8x7B-Instruct-v0.1",
|
| 93 |
token=hf_token,
|
| 94 |
)
|
| 95 |
|
|
|
|
| 96 |
self.system_instructions = (
|
| 97 |
"You are solving GAIA benchmark questions.\n"
|
| 98 |
"Rules:\n"
|