WUBIAO commited on
Commit
af7f6d6
·
verified ·
1 Parent(s): 3d1ff37

Upload cogagent_infer.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. cogagent_infer.py +3 -2
cogagent_infer.py CHANGED
@@ -199,8 +199,9 @@ def main():
199
  res.append(ans)
200
  round_num += 1
201
  print(res)
202
- with open("args.output_json", "w", encoding="utf-8") as file:
203
- json.dump(res, file, ensure_ascii=False, indent=4)
 
204
 
205
 
206
 
 
199
  res.append(ans)
200
  round_num += 1
201
  print(res)
202
+ with open("args.output_json", "w") as file:
203
+ print("Writing to json file")
204
+ json.dump(res, file, indent=4)
205
 
206
 
207