Spaces:
Runtime error
Runtime error
Update safety_checker.py
Browse files- safety_checker.py +3 -0
safety_checker.py
CHANGED
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
1 |
import numpy as np
|
2 |
import torch
|
3 |
import torch.nn as nn
|
|
|
1 |
+
"""
|
2 |
+
file copy from diffusion library from Huggingface: https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/stable_diffusion/safety_checker.py
|
3 |
+
"""
|
4 |
import numpy as np
|
5 |
import torch
|
6 |
import torch.nn as nn
|