mirror of https://github.com/microsoft/autogen.git
add support for video type
This commit is contained in:
parent
8bcb720e0a
commit
5871bb59a6
|
@ -28,7 +28,9 @@ const MetaDataView = ({ metadata }: { metadata: any | null }) => {
|
|||
const is_code = ["code"].includes(file.type);
|
||||
const is_csv = ["csv"].includes(file.type);
|
||||
const is_pdf = ["pdf"].includes(file.type);
|
||||
const is_video = ["video"].includes(file.type);
|
||||
const is_video =
|
||||
["video"].includes(file.type) ||
|
||||
["mp4", "webm", "ogg"].includes(file.extension);
|
||||
const file_name = file.name || "unknown";
|
||||
const file_path = file.path || "unknown";
|
||||
|
||||
|
|
Loading…
Reference in New Issue