stzhao commited on
Commit
0ee054b
·
verified ·
1 Parent(s): de1ca6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -12
app.py CHANGED
@@ -144,18 +144,6 @@ def evaluate_single_data(data, client, executor, prompt_template, prompt_type):
144
  stop=["</code>"]
145
  )
146
 
147
- if response_text is None:
148
- print("Failed to get response from API")
149
- return {
150
- "input": data["question"],
151
- "output": data["answer"],
152
- "prediction": {
153
- "solution": "API Error",
154
- "correctness": False,
155
- "code_execution_count": 0,
156
- }
157
- }
158
-
159
  # 处理响应
160
  final_response = response_text
161
  code_execution_count = 0
 
144
  stop=["</code>"]
145
  )
146
 
 
 
 
 
 
 
 
 
 
 
 
 
147
  # 处理响应
148
  final_response = response_text
149
  code_execution_count = 0