Download src/display/formatting.py from Sam5225/test: direct link, hf CLI and curl.
- Browser
- Download file 493 Bytes
-
https://huggingface.co/spaces/Sam5225/test/resolve/main/src/display/formatting.py
- Command line
-
hf download hf://spaces/Sam5225/test/src/display/formatting.py
-
curl -L -o formatting.py https://huggingface.co/spaces/Sam5225/test/resolve/main/src/display/formatting.py
493 Bytes
| def model_hyperlink(link, model_name): | |
| return f'<a target="_blank" href="{link}" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{model_name}</a>' | |
| def make_clickable_model(model_name): | |
| link = f"https://huggingface.co/{model_name}" | |
| return model_hyperlink(link, model_name) | |
| def has_no_nan_values(df, columns): | |
| return df[columns].notna().all(axis=1) | |
| def has_nan_values(df, columns): | |
| return df[columns].isna().any(axis=1) | |