Spaces:
Running
Running
Download src/components/GlassFilters.tsx from philincloud/fastvlm-webgpu: direct link, hf CLI and curl.
- Browser
- Download file 506 Bytes
-
https://huggingface.co/spaces/philincloud/fastvlm-webgpu/resolve/main/src/components/GlassFilters.tsx
- Command line
-
hf download hf://spaces/philincloud/fastvlm-webgpu/src/components/GlassFilters.tsx
-
curl -L -o GlassFilters.tsx https://huggingface.co/spaces/philincloud/fastvlm-webgpu/resolve/main/src/components/GlassFilters.tsx
506 Bytes
| import { GLASS_EFFECTS } from "../constants"; | |
| export default function GlassFilters() { | |
| return ( | |
| <svg style={{ display: "none" }} aria-hidden="true"> | |
| <filter id="glass-distortion"> | |
| <feTurbulence | |
| type="turbulence" | |
| baseFrequency={GLASS_EFFECTS.BASE_FREQUENCY} | |
| numOctaves={GLASS_EFFECTS.NUM_OCTAVES} | |
| result="noise" | |
| /> | |
| <feDisplacementMap in="SourceGraphic" in2="noise" scale={GLASS_EFFECTS.SCALE} /> | |
| </filter> | |
| </svg> | |
| ); | |
| } | |