Unverified Commit fb507b7b authored by Yikai Zhang's avatar Yikai Zhang Committed by GitHub
Browse files

[FIX] mmmu bench serving result display error (#6525) (#6791)

parent f90945c4
......@@ -1212,7 +1212,7 @@ async def benchmark(
if "<image>" in test_prompt:
import re
image_match = re.search(r"<image>(.*?)</image>(.*)", test_prompt)
image_match = re.search(r"<image>(.*?)</image>(.*)", test_prompt, re.DOTALL)
image_data = image_match.group(1) if image_match else None
test_prompt = image_match.group(2) if image_match else test_prompt
else:
......@@ -1285,7 +1285,7 @@ async def benchmark(
if "<image>" in prompt:
import re
image_match = re.search(r"<image>(.*?)</image>(.*)", prompt)
image_match = re.search(r"<image>(.*?)</image>(.*)", prompt, re.DOTALL)
image_data = image_match.group(1) if image_match else None
prompt = image_match.group(2) if image_match else prompt
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment