Update app.py
Browse files
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
|
| 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: {
|
| 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 |
|