Skip to content

Commit

Permalink
Fix badly formatted llama factory recorder main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
haixuanTao committed Oct 7, 2024
1 parent 33307b4 commit 5917b9e
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def save_image_and_add_to_json(
]
)
image_paths = []
for (event_id, data) in frame_dict.items():
for event_id, data in frame_dict.items():
# Define the image filename
image_filename = f"{event_id}-{image_id}.png"
image_path = os.path.join(root_path, image_filename)
Expand Down Expand Up @@ -171,7 +171,10 @@ def main():
ground_truth = event["value"][0].as_py()

messages = [
{"content": "<image>" * len(frames.keys()) + question, "role": "user"},
{
"content": "<image>" * len(frames.keys()) + question,
"role": "user",
},
{
"content": ground_truth,
"role": "assistant",
Expand Down

0 comments on commit 5917b9e

Please sign in to comment.