Sandiago21 commited on
Commit
86e9789
·
verified ·
1 Parent(s): bb1e344

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -23,7 +23,7 @@ class BasicAgent:
23
  def __init__(self):
24
  self.model = TransformersModel(
25
  model_id="Qwen/Qwen2.5-Coder-7B-Instruct",
26
- max_new_tokens=1024,
27
  temperature=0.1,
28
  )
29
 
@@ -76,10 +76,11 @@ class BasicAgent:
76
  def __call__(self, question: str) -> str:
77
  print(f"Agent received question (first 50 chars): {question[:50]}...")
78
  fixed_answer = "This is a default answer."
79
- print(f"Agent returning fixed answer: {fixed_answer}")
80
 
81
 
82
- if question == "Given this table defining * on the set S = {a, b, c, d, e}\n\n|*|a|b|c|d|e|\n|---|---|---|---|---|---|\n|a|a|b|c|b|d|\n|b|b|c|a|e|c|\n|c|c|a|b|b|a|\n|d|b|e|b|e|d|\n|e|d|b|a|d|c|\n\nprovide the subset of S involved in any possible counter-examples that prove * is not commutative. Provide your answer as a comma separated list of the elements in the set in alphabetical order.":
 
83
  agent_answer = self.agent.run(question)
84
  else:
85
  agent_answer = fixed_answer
 
23
  def __init__(self):
24
  self.model = TransformersModel(
25
  model_id="Qwen/Qwen2.5-Coder-7B-Instruct",
26
+ max_new_tokens=768,
27
  temperature=0.1,
28
  )
29
 
 
76
  def __call__(self, question: str) -> str:
77
  print(f"Agent received question (first 50 chars): {question[:50]}...")
78
  fixed_answer = "This is a default answer."
79
+ # print(f"Agent returning fixed answer: {fixed_answer}")
80
 
81
 
82
+ # if question == "Given this table defining * on the set S = {a, b, c, d, e}\n\n|*|a|b|c|d|e|\n|---|---|---|---|---|---|\n|a|a|b|c|b|d|\n|b|b|c|a|e|c|\n|c|c|a|b|b|a|\n|d|b|e|b|e|d|\n|e|d|b|a|d|c|\n\nprovide the subset of S involved in any possible counter-examples that prove * is not commutative. Provide your answer as a comma separated list of the elements in the set in alphabetical order.":
83
+ if " image " not in question and " video " not in question:
84
  agent_answer = self.agent.run(question)
85
  else:
86
  agent_answer = fixed_answer