Fix linting
Browse files
reproduce/Step_3.py
CHANGED
@@ -28,9 +28,10 @@ def run_queries_and_save_to_json(
|
|
28 |
):
|
29 |
loop = always_get_an_event_loop()
|
30 |
|
31 |
-
with
|
32 |
-
|
33 |
-
|
|
|
34 |
result_file.write("[\n")
|
35 |
first_entry = True
|
36 |
|
|
|
28 |
):
|
29 |
loop = always_get_an_event_loop()
|
30 |
|
31 |
+
with (
|
32 |
+
open(output_file, "a", encoding="utf-8") as result_file,
|
33 |
+
open(error_file, "a", encoding="utf-8") as err_file,
|
34 |
+
):
|
35 |
result_file.write("[\n")
|
36 |
first_entry = True
|
37 |
|
reproduce/Step_3_openai_compatible.py
CHANGED
@@ -59,9 +59,10 @@ def run_queries_and_save_to_json(
|
|
59 |
):
|
60 |
loop = always_get_an_event_loop()
|
61 |
|
62 |
-
with
|
63 |
-
|
64 |
-
|
|
|
65 |
result_file.write("[\n")
|
66 |
first_entry = True
|
67 |
|
|
|
59 |
):
|
60 |
loop = always_get_an_event_loop()
|
61 |
|
62 |
+
with (
|
63 |
+
open(output_file, "a", encoding="utf-8") as result_file,
|
64 |
+
open(error_file, "a", encoding="utf-8") as err_file,
|
65 |
+
):
|
66 |
result_file.write("[\n")
|
67 |
first_entry = True
|
68 |
|