wishmi1234 commited on
Commit
504e0e3
·
verified ·
1 Parent(s): 640f0cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -14
app.py CHANGED
@@ -43,24 +43,24 @@ class BasicAgent:
43
  def __init__(self):
44
  model = InferenceClientModel(
45
  "qwen/Qwen2.5-0.5B-Instruct",
46
- max_tokens=512
47
- # system_message="""
48
- # You are a highly capable AI assistant designed to solve real-world, multi-step reasoning tasks in the GAIA benchmark.
49
- # Your job is to:
50
- # - Search the web or Wikipedia if needed
51
- # - Perform Python calculations or date arithmetic
52
 
53
- # Instructions:
54
- # 1. Think step-by-step and use tools wisely.
55
- # 2. Always return a short, direct answer — no explanation or formatting.
56
 
57
- # Examples:
58
- # - Q: What is the capital of France?
59
- # - A: Paris
60
 
61
- # Your output must be: a single clean answer string only.
62
 
63
- # """
64
  )
65
  self.agent = CodeAgent(
66
  tools=[
 
43
  def __init__(self):
44
  model = InferenceClientModel(
45
  "qwen/Qwen2.5-0.5B-Instruct",
46
+ max_tokens=512,
47
+ system_message="""
48
+ You are a highly capable AI assistant designed to solve real-world, multi-step reasoning tasks in the GAIA benchmark.
49
+ Your job is to:
50
+ - Search the web or Wikipedia if needed
51
+ - Perform Python calculations or date arithmetic
52
 
53
+ Instructions:
54
+ 1. Think step-by-step and use tools wisely.
55
+ 2. Always return a short, direct answer — no explanation or formatting.
56
 
57
+ Examples:
58
+ - Q: What is the capital of France?
59
+ - A: Paris
60
 
61
+ Your output must be: a single clean answer string only.
62
 
63
+ """
64
  )
65
  self.agent = CodeAgent(
66
  tools=[