shashank970613 commited on
Commit
b2a5d5a
·
verified ·
1 Parent(s): f0ef77f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,7 +22,7 @@ def get_file_content_tool(task_id: str) -> str:
22
  return f"File downloaded successfully as {filename}."
23
  return f"Failed to download file for task {task_id}"
24
 
25
- # 2. Initialize the model and CodeAgent
26
  model = HfApiModel(model_id="Qwen/Qwen2.5-Coder-32B-Instruct")
27
 
28
  agent = CodeAgent(
@@ -86,7 +86,7 @@ def run_evaluation(username):
86
  result_json = sub_resp.json()
87
  log_output += f"\nSubmission Successful! Response: {result_json}"
88
  else:
89
- log_output += f"\nSubmission Failed: {sub_rezp.text if 'sub_rezp' in locals() else sub_resp.text}"
90
 
91
  return log_output
92
 
 
22
  return f"File downloaded successfully as {filename}."
23
  return f"Failed to download file for task {task_id}"
24
 
25
+ # 2. Initialize the model using HfApiModel properly
26
  model = HfApiModel(model_id="Qwen/Qwen2.5-Coder-32B-Instruct")
27
 
28
  agent = CodeAgent(
 
86
  result_json = sub_resp.json()
87
  log_output += f"\nSubmission Successful! Response: {result_json}"
88
  else:
89
+ log_output += f"\nSubmission Failed: {sub_resp.text}"
90
 
91
  return log_output
92