SpaghettiM commited on
Commit
2df3e40
·
verified ·
1 Parent(s): 6244790

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -13,7 +13,7 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
13
  # ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
14
  class BasicAgent:
15
  def __init__(self):
16
- self.model = TransformersModel(model_id='deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B'#'Qwen/Qwen3-8B-FP8'
17
  )
18
 
19
  self.agent = ToolCallingAgent(
@@ -24,12 +24,13 @@ class BasicAgent:
24
  def __call__(self, question: str) -> str:
25
  print(f"Agent received question (first 50 chars): {question[:50]}...")
26
  fixed_answer = "This is a default answer."
 
27
  try:
28
  new_answer = self.agent.run(question)
29
  except Exception as e:
30
  print(e)
31
  print(f"Agent returning answer: {new_answer}")
32
- return fixed_answer
33
 
34
  def run_and_submit_all( profile: gr.OAuthProfile | None):
35
  """
 
13
  # ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
14
  class BasicAgent:
15
  def __init__(self):
16
+ self.model = TransformersModel(model_id='google/gemma-3-4b-it-qat-q4_0-gguf'#'Qwen/Qwen3-8B-FP8'
17
  )
18
 
19
  self.agent = ToolCallingAgent(
 
24
  def __call__(self, question: str) -> str:
25
  print(f"Agent received question (first 50 chars): {question[:50]}...")
26
  fixed_answer = "This is a default answer."
27
+ new_answer = fixed_answer
28
  try:
29
  new_answer = self.agent.run(question)
30
  except Exception as e:
31
  print(e)
32
  print(f"Agent returning answer: {new_answer}")
33
+ return new_answer
34
 
35
  def run_and_submit_all( profile: gr.OAuthProfile | None):
36
  """