Spaces:
Runtime error
Runtime error
Download next/src/utils/user.ts from dia-gov/AgentGPT-Web-GUI: direct link, hf CLI and curl.
- Browser
- Download file 262 Bytes
-
https://huggingface.co/spaces/dia-gov/AgentGPT-Web-GUI/resolve/main/next/src/utils/user.ts
- Command line
-
hf download hf://spaces/dia-gov/AgentGPT-Web-GUI/next/src/utils/user.ts
-
curl -L -o user.ts https://huggingface.co/spaces/dia-gov/AgentGPT-Web-GUI/resolve/main/next/src/utils/user.ts
262 Bytes
| export const get_avatar = (user?: { | |
| name?: string | null; | |
| email?: string | null; | |
| image?: string | null; | |
| }) => | |
| user?.image || | |
| "https://avatar.vercel.sh/" + | |
| (user?.email || "") + | |
| ".svg?text=" + | |
| (user?.name?.substr(0, 2).toUpperCase() || ""); | |