Spaces:
Paused
Paused
Download src/lib/components/chat/Messages/ProfileImage.svelte from ancoai/open-webui: direct link, hf CLI and curl.
- Browser
- Download file 548 Bytes
-
https://huggingface.co/spaces/ancoai/open-webui/resolve/main/src/lib/components/chat/Messages/ProfileImage.svelte
- Command line
-
hf download hf://spaces/ancoai/open-webui/src/lib/components/chat/Messages/ProfileImage.svelte
-
curl -L -o ProfileImage.svelte https://huggingface.co/spaces/ancoai/open-webui/resolve/main/src/lib/components/chat/Messages/ProfileImage.svelte
548 Bytes
| <script lang="ts"> | |
| import { WEBUI_BASE_URL } from '$lib/constants'; | |
| export let className = 'size-8'; | |
| export let src = `${WEBUI_BASE_URL}/static/favicon.png`; | |
| </script> | |
| <img | |
| crossorigin="anonymous" | |
| src={src === '' | |
| ? `${WEBUI_BASE_URL}/static/favicon.png` | |
| : src.startsWith(WEBUI_BASE_URL) || | |
| src.startsWith('https://www.gravatar.com/avatar/') || | |
| src.startsWith('data:') || | |
| src.startsWith('/') | |
| ? src | |
| : `/user.png`} | |
| class=" {className} object-cover rounded-full -translate-y-[1px]" | |
| alt="profile" | |
| draggable="false" | |
| /> | |