Download client/src/components/Files/FileList/DataTableFilePreview.tsx from Zhitomir/chat: direct link, hf CLI and curl.
- Browser
- Download file 1.78 kB
-
https://huggingface.co/spaces/Zhitomir/chat/resolve/main/client/src/components/Files/FileList/DataTableFilePreview.tsx
- Command line
-
hf download hf://spaces/Zhitomir/chat/client/src/components/Files/FileList/DataTableFilePreview.tsx
-
curl -L -o DataTableFilePreview.tsx https://huggingface.co/spaces/Zhitomir/chat/resolve/main/client/src/components/Files/FileList/DataTableFilePreview.tsx
1.78 kB
| import React from 'react'; | |
| import DataTableFile from './DataTableFile'; | |
| import { TVectorStore } from '~/common'; | |
| import { files } from '../../Chat/Input/Files/Table'; | |
| import { fileTableColumns } from './../FileList/FileTableColumns'; | |
| const vectorStoresAttached: TVectorStore[] = [ | |
| { | |
| name: 'vector 1 vector 1', | |
| created_at: '2022-01-01T10:00:00', | |
| _id: 'id', | |
| object: 'vector_store', | |
| }, | |
| { | |
| name: 'vector 1 vector 1', | |
| created_at: '2022-01-01T10:00:00', | |
| _id: 'id', | |
| object: 'vector_store', | |
| }, | |
| { | |
| name: 'vector 1 vector 1', | |
| created_at: '2022-01-01T10:00:00', | |
| _id: 'id', | |
| object: 'vector_store', | |
| }, | |
| { | |
| name: 'vector 1 vector 1', | |
| created_at: '2022-01-01T10:00:00', | |
| _id: 'id', | |
| object: 'vector_store', | |
| }, | |
| { | |
| name: 'vector 1 vector 1', | |
| created_at: '2022-01-01T10:00:00', | |
| _id: 'id', | |
| object: 'vector_store', | |
| }, | |
| { | |
| name: 'vector 1 vector 1', | |
| created_at: '2022-01-01T10:00:00', | |
| _id: 'id', | |
| object: 'vector_store', | |
| }, | |
| { | |
| name: 'vector 1 vector 1', | |
| created_at: '2022-01-01T10:00:00', | |
| _id: 'id', | |
| object: 'vector_store', | |
| }, | |
| { | |
| name: 'vector 1 vector 1', | |
| created_at: '2022-01-01T10:00:00', | |
| _id: 'id', | |
| object: 'vector_store', | |
| }, | |
| { | |
| name: 'vector 1 vector 1', | |
| created_at: '2022-01-01T10:00:00', | |
| _id: 'id', | |
| object: 'vector_store', | |
| }, | |
| { | |
| name: 'vector 1 vector 1', | |
| created_at: '2022-01-01T10:00:00', | |
| _id: 'id', | |
| object: 'vector_store', | |
| }, | |
| ]; | |
| files.forEach((file) => { | |
| file['vectorsAttached'] = vectorStoresAttached; | |
| }); | |
| export default function DataTableFilePreview() { | |
| return ( | |
| <div> | |
| <DataTableFile columns={fileTableColumns} data={files} /> | |
| <div className="mt-5 sm:mt-4" /> | |
| </div> | |
| ); | |
| } | |