Spaces:
Runtime error
Runtime error
Download frontend/src/components/ProgressBar.jsx from stvident/colorization: direct link, hf CLI and curl.
- Browser
- Download file 624 Bytes
-
https://huggingface.co/spaces/stvident/colorization/resolve/main/frontend/src/components/ProgressBar.jsx
- Command line
-
hf download hf://spaces/stvident/colorization/frontend/src/components/ProgressBar.jsx
-
curl -L -o ProgressBar.jsx https://huggingface.co/spaces/stvident/colorization/resolve/main/frontend/src/components/ProgressBar.jsx
624 Bytes
| import { LinearProgress, Box } from '@mui/material'; | |
| export default function ProgressBar({ current, total }) { | |
| const value = total > 0 ? (current / total) * 100 : 0; | |
| return ( | |
| <Box sx={{ width: '100%' }}> | |
| <LinearProgress | |
| variant="determinate" | |
| value={value} | |
| sx={{ | |
| height: 4, | |
| borderRadius: 2, | |
| backgroundColor: 'rgba(124, 77, 255, 0.15)', | |
| '& .MuiLinearProgress-bar': { | |
| borderRadius: 2, | |
| background: 'linear-gradient(90deg, #7C4DFF 0%, #B47CFF 100%)', | |
| }, | |
| }} | |
| /> | |
| </Box> | |
| ); | |
| } | |