Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
File size: 1,186 Bytes
c479a59 7b25d55 a084673 b34e9b1 a084673 b1a4d81 eb29a95 b1a4d81 eb29a95 b1a4d81 e8410db b1a4d81 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
export const REACTION_EMOJIS = ["β€οΈ", "π€©", "π", "π₯"]
export const COMMUNITY_FILTER_OPTIONS = [
{
label: "Most Liked",
value: "likes",
icon: "lucide:heart",
iconColor: "text-red-500"
},
{
label: "New",
value: "new",
icon: "lucide:zap",
iconColor: "text-yellow-500"
}
];
export const MODELS_FILTER_OPTIONS = [
{
label: "Most Liked",
value: "likes",
icon: "lucide:heart",
iconColor: "text-red-500"
},
{
label: "Hotest",
value: "hotest",
icon: "ph:fire-bold",
iconColor: "text-orange-500"
},
];
export const SIDEBAR_MENUS = [ {
icon: "uim:cube",
label: "Models",
href: "/",
}, {
icon: "solar:gallery-bold-duotone",
label: "Gallery",
href: "/gallery",
}, {
icon: "fluent:glance-horizontal-sparkles-16-filled",
label: "Generate",
href: "/generate",
}]
export const tokenIsAvailable = async (token: string) => {
const userRequest = await fetch("https://huggingface.co/oauth/userinfo", {
method: "GET",
headers: {
Authorization: `Bearer ${token}`,
},
})
const user = await userRequest.clone().json().catch(() => ({}));
return user?.sub ? user : null;
} |