TommasoBB commited on
Commit
c2a3074
·
verified ·
1 Parent(s): bca5916

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -17,8 +17,8 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
17
 
18
  # --- Models ---
19
  # Vision model for image analysis / OCR
20
- vision_model = ApiModel(repo_id="FireRedTeam/FireRed-OCR", max_new_tokens=2048, temperature=0.3)
21
- math_model = ApiModel(repo_id="Qwen/Qwen2.5-Math-1.5B", max_new_tokens=2048, temperature=0.3)
22
 
23
  #define the state
24
  class AgentState(TypedDict):
@@ -236,7 +236,7 @@ Context gathered:
236
  """
237
  messages = [HumanMessage(content=prompt)]
238
  # Use the general model for final answer synthesis
239
- general_model = ApiModel(repo_id="Qwen3.5-35B-A3B", max_new_tokens=2048, temperature=0.3)
240
  response = general_model.invoke(messages)
241
  raw_response = response.content if hasattr(response, 'content') else str(response)
242
 
 
17
 
18
  # --- Models ---
19
  # Vision model for image analysis / OCR
20
+ vision_model = ApiModel(model_id="FireRedTeam/FireRed-OCR", max_new_tokens=2048, temperature=0.3)
21
+ math_model = ApiModel(model_id="Qwen/Qwen2.5-Math-1.5B", max_new_tokens=2048, temperature=0.3)
22
 
23
  #define the state
24
  class AgentState(TypedDict):
 
236
  """
237
  messages = [HumanMessage(content=prompt)]
238
  # Use the general model for final answer synthesis
239
+ general_model = ApiModel(model_id="Qwen3.5-35B-A3B", max_new_tokens=2048, temperature=0.3)
240
  response = general_model.invoke(messages)
241
  raw_response = response.content if hasattr(response, 'content') else str(response)
242