Update app.py
Browse files
app.py
CHANGED
|
@@ -28,8 +28,6 @@ from diffusion.script_util import create_model_and_diffusion, model_and_diffusio
|
|
| 28 |
import numpy as np
|
| 29 |
import imageio
|
| 30 |
|
| 31 |
-
#torch.hub.download_url_to_file('https://drive.google.com/uc?export=view&id=1MLfHs2Q-hHBySJqcYdG70cUwjqvJ52H9', 'feifei.jpg')
|
| 32 |
-
|
| 33 |
def fetch(url_or_path):
|
| 34 |
if str(url_or_path).startswith('http://') or str(url_or_path).startswith('https://'):
|
| 35 |
r = requests.get(url_or_path)
|
|
|
|
| 28 |
import numpy as np
|
| 29 |
import imageio
|
| 30 |
|
|
|
|
|
|
|
| 31 |
def fetch(url_or_path):
|
| 32 |
if str(url_or_path).startswith('http://') or str(url_or_path).startswith('https://'):
|
| 33 |
r = requests.get(url_or_path)
|