tahamajs/RR / Codes /frontend /src /components /widgets /DownloadModelButton.tsx
tahamajs's picture
download
raw
478 Bytes
import { Download } from "lucide-react";
import { Button } from "../ui/Button";
export function DownloadModelButton({ runId }: { runId?: string }) {
const handleDownload = () => {
if (runId) {
window.open(`/runs/${runId}/model/`, "_blank");
}
};
return (
<Button
variant="primary"
size="sm"
onClick={handleDownload}
disabled={!runId}
>
<Download size={16} className="mr-1" />
Download Model
</Button>
);
}

Xet Storage Details

Size:
478 Bytes
·
Xet hash:
4070eceb02b646963a1d0fb2b8c68c2742a501c59a8b9724d211ded965d02833

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.