import styles from "./DownloadModelsContainer.module.scss"; import vrct_logo_for_dark_mode from "@images/vrct_logo_for_dark_mode.png"; import vrct_now_downloading from "@images/VRCT_now_downloading.png"; import { useCTranslate2WeightTypeStatus, useWhisperWeightTypeStatus, } from "@logics_configs"; export const DownloadModelsContainer = () => { const { currentCTranslate2WeightTypeStatus } = useCTranslate2WeightTypeStatus(); const { currentWhisperWeightTypeStatus } = useWhisperWeightTypeStatus(); const c_translate_2 = currentCTranslate2WeightTypeStatus.data.find(d => d.id === "small"); const whisper = currentWhisperWeightTypeStatus.data.find(d => d.id === "base"); if (c_translate_2.progress === null && whisper.progress === null) return null; return (
{`${props.type_label}: ${Math.round(props.progress)}%`}