Skip to content

Commit 1694082

Browse files
authored
add result save for ci (#2824)
LGTM
1 parent d48c034 commit 1694082

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/ci_use/EB_VL_Lite/test_EB_VL_Lite_serving.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,10 @@ def test_consistency_between_runs(api_url, headers, consistent_payload):
189189
assert resp1.status_code == 200
190190
result1 = resp1.json()
191191
content1 = result1["choices"][0]["message"]["content"]
192+
file_res_temp = "ernie-4_5-vl"
193+
f_o = open(file_res_temp, 'a')
194+
f_o.writelines(content1)
195+
f_o.close()
192196

193197
# base result
194198
base_path = os.getenv("MODEL_PATH")

0 commit comments

Comments
 (0)