Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,7 +23,7 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
| 23 |
if "HF_TOKEN_LOGIN" in os.environ:
|
| 24 |
login(token=os.environ["HF_TOKEN_LOGIN"])
|
| 25 |
|
| 26 |
-
def apply_gaussian_blur(image, radius=0
|
| 27 |
"""Apply Gaussian blur to PIL Image with specified radius"""
|
| 28 |
return image.filter(ImageFilter.GaussianBlur(radius=radius))
|
| 29 |
|
|
|
|
| 23 |
if "HF_TOKEN_LOGIN" in os.environ:
|
| 24 |
login(token=os.environ["HF_TOKEN_LOGIN"])
|
| 25 |
|
| 26 |
+
def apply_gaussian_blur(image, radius=1.0):
|
| 27 |
"""Apply Gaussian blur to PIL Image with specified radius"""
|
| 28 |
return image.filter(ImageFilter.GaussianBlur(radius=radius))
|
| 29 |
|