Skip to content

Commit

Permalink
show audio url correctly in message table
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderGi committed Jul 19, 2024
1 parent 29e44c8 commit fb1df46
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions bots/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1222,11 +1222,7 @@ def to_df_format(
metadata__mime_type__startswith="image/"
).values_list("url", flat=True)
),
"Audio Input": ", ".join(
message.attachments.filter(
metadata__mime_type__startswith="audio/"
).values_list("url", flat=True)
),
"Audio Input": message.saved_run.state.get("input_audio", ""),
}
rows.append(row)
df = pd.DataFrame.from_records(
Expand Down

0 comments on commit fb1df46

Please sign in to comment.