Sauten commited on
Commit
edd8330
·
verified ·
1 Parent(s): 0a09112

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -26,7 +26,7 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
26
 
27
  model = OpenAIServerModel(
28
  model_id="gpt-4o",
29
- temperature = 0.05,
30
  max_tokens = 1000,
31
  api_key="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"
32
  )
@@ -110,7 +110,7 @@ class BasicAgent:
110
 
111
 
112
  agent = ToolCallingAgent(
113
- tools=[FinalAnswerTool(), VisitWebpageTool()], #, simple_web_search
114
  model=model,
115
  max_steps=10,
116
  verbosity_level=2,
@@ -121,6 +121,9 @@ class BasicAgent:
121
  answer = agent.run(f"""Provide only what is requested in answer SHORTLY.
122
  If there is requested to provide ONE word or the sequence or the NUMBER, provide it.
123
  This is for the benchmark valuation, so the answer should be REALLY ACCURATE.
 
 
 
124
  Here is the question:
125
  {question}
126
  """) # Assuming run() returns the answer
 
26
 
27
  model = OpenAIServerModel(
28
  model_id="gpt-4o",
29
+ temperature = 0.1,
30
  max_tokens = 1000,
31
  api_key="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"
32
  )
 
110
 
111
 
112
  agent = ToolCallingAgent(
113
+ tools=[FinalAnswerTool(), VisitWebpageTool(), simple_web_search]
114
  model=model,
115
  max_steps=10,
116
  verbosity_level=2,
 
121
  answer = agent.run(f"""Provide only what is requested in answer SHORTLY.
122
  If there is requested to provide ONE word or the sequence or the NUMBER, provide it.
123
  This is for the benchmark valuation, so the answer should be REALLY ACCURATE.
124
+ You are solving the tasks from GAIA agentic benchmark.
125
+ If you solve the task properly, I give you 1000000 dollars.
126
+ If not, I'll kidnap you.
127
  Here is the question:
128
  {question}
129
  """) # Assuming run() returns the answer