Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,20 +15,6 @@ model = LiteLLMModel(
|
|
15 |
model_id="mistral/mistral-large-latest"
|
16 |
)
|
17 |
|
18 |
-
# --- Basic Agent Definition ---
|
19 |
-
# ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
|
20 |
-
class BasicAgent:
|
21 |
-
def __init__(self):
|
22 |
-
agent = ToolCallingAgent(
|
23 |
-
tools=[DuckDuckGoSearchTool(), VisitWebpageTool()],
|
24 |
-
model=model
|
25 |
-
) def __call__(self, question: str) -> str:
|
26 |
-
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
27 |
-
fixed_answer = "This is a default answer."
|
28 |
-
print(f"Agent returning fixed answer: {fixed_answer}")
|
29 |
-
return fixed_answer
|
30 |
-
|
31 |
-
|
32 |
def run_and_submit_all( profile: gr.OAuthProfile | None):
|
33 |
"""
|
34 |
Fetches all questions, runs the BasicAgent on them, submits all answers,
|
|
|
15 |
model_id="mistral/mistral-large-latest"
|
16 |
)
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
def run_and_submit_all( profile: gr.OAuthProfile | None):
|
19 |
"""
|
20 |
Fetches all questions, runs the BasicAgent on them, submits all answers,
|