diff --git a/_redirects b/_redirects index cb8399f97f..81385faefe 100644 --- a/_redirects +++ b/_redirects @@ -43,6 +43,7 @@ /voice-conversion* /index.html 200 /w2l* /index.html 200 /voice-designer* /index.html 200 +/weight* /index.html 200 # Test paths /dev-tts* /index.html 200 diff --git a/packages/components/src/api/_common/enums/WeightsCategory.ts b/packages/components/src/api/_common/enums/WeightCategory.ts similarity index 80% rename from packages/components/src/api/_common/enums/WeightsCategory.ts rename to packages/components/src/api/_common/enums/WeightCategory.ts index 0513342ffc..e0c256eb67 100644 --- a/packages/components/src/api/_common/enums/WeightsCategory.ts +++ b/packages/components/src/api/_common/enums/WeightCategory.ts @@ -1,4 +1,4 @@ -export enum WeightsCategory { +export enum WeightCategory { TTS = "text_to_speech", VOCODER = "vocoder", VC = "voice_conversion", diff --git a/packages/components/src/api/_common/enums/WeightsType.ts b/packages/components/src/api/_common/enums/WeightType.ts similarity index 75% rename from packages/components/src/api/_common/enums/WeightsType.ts rename to packages/components/src/api/_common/enums/WeightType.ts index 6e42f545d2..f4e51c6846 100644 --- a/packages/components/src/api/_common/enums/WeightsType.ts +++ b/packages/components/src/api/_common/enums/WeightType.ts @@ -1,4 +1,4 @@ -export enum WeightsType { +export enum WeightType { TT2 = "tt2", HIFIGAN_TT2 = "hifigan_tt2", RVCv2 = "rvc_v2", @@ -6,4 +6,5 @@ export enum WeightsType { SDXL = "sdxl", SVC = "so_vits_svc", LORA = "loRA", + VALL_E = "vall_e", } diff --git a/packages/components/src/api/weights/GetWeight.ts b/packages/components/src/api/weights/GetWeight.ts index 4374a724ca..b574448113 100644 --- a/packages/components/src/api/weights/GetWeight.ts +++ b/packages/components/src/api/weights/GetWeight.ts @@ -1,17 +1,18 @@ // import MakeRequest from "../MakeRequest"; import { UserDetailsLight } from "../_common/UserDetailsLight"; -import { WeightsCategory } from "../_common/enums/WeightsCategory"; -import { WeightsType } from "../_common/enums/WeightsType"; +import { WeightCategory } from "../_common/enums/WeightCategory"; +import { WeightType } from "../_common/enums/WeightType"; export interface Weight { weight_token: string; - weights_type: WeightsType; - weights_category: WeightsCategory; + weight_type: WeightType; + weight_category: WeightCategory; maybe_creator_user: UserDetailsLight | null; creator_set_visibility: string; created_at: Date; updated_at: Date; title: string; + description_markdown: string; } // export interface GetMediaRequest {} diff --git a/packages/fakeyou.com/src/components/common/Tabs/NonRouteTabs.tsx b/packages/fakeyou.com/src/components/common/Tabs/NonRouteTabs.tsx new file mode 100644 index 0000000000..f9c447f609 --- /dev/null +++ b/packages/fakeyou.com/src/components/common/Tabs/NonRouteTabs.tsx @@ -0,0 +1,83 @@ +import React, { useState } from "react"; +import { useSpring, a } from "@react-spring/web"; +import "./Tabs.scss"; +import { IconDefinition } from "@fortawesome/fontawesome-svg-core"; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; + +interface NonRouteTabProps { + label: string; + icon?: IconDefinition; + isActive: boolean; + onClick: () => void; +} + +interface NonRouteTabsProps { + tabs: { + label: string; + content: React.ReactNode; + icon?: IconDefinition; + padding?: boolean; + }[]; +} + +function NonRouteTab({ label, icon, isActive, onClick }: NonRouteTabProps) { + return ( +