Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
14e4fc4
1
Parent(s):
06acd61
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,7 @@ os.system('pip install -e ./CLIP')
|
|
7 |
os.system('pip install -e ./guided-diffusion')
|
8 |
os.system('pip install lpips')
|
9 |
os.system("curl -OL 'https://openaipublic.blob.core.windows.net/diffusion/jul-2021/256x256_diffusion_uncond.pt'")
|
|
|
10 |
import io
|
11 |
import math
|
12 |
import sys
|
@@ -25,7 +26,6 @@ import clip
|
|
25 |
from guided_diffusion.script_util import create_model_and_diffusion, model_and_diffusion_defaults
|
26 |
import numpy as np
|
27 |
import imageio
|
28 |
-
# Define necessary functions
|
29 |
def fetch(url_or_path):
|
30 |
if str(url_or_path).startswith('http://') or str(url_or_path).startswith('https://'):
|
31 |
r = requests.get(url_or_path)
|
|
|
7 |
os.system('pip install -e ./guided-diffusion')
|
8 |
os.system('pip install lpips')
|
9 |
os.system("curl -OL 'https://openaipublic.blob.core.windows.net/diffusion/jul-2021/256x256_diffusion_uncond.pt'")
|
10 |
+
|
11 |
import io
|
12 |
import math
|
13 |
import sys
|
|
|
26 |
from guided_diffusion.script_util import create_model_and_diffusion, model_and_diffusion_defaults
|
27 |
import numpy as np
|
28 |
import imageio
|
|
|
29 |
def fetch(url_or_path):
|
30 |
if str(url_or_path).startswith('http://') or str(url_or_path).startswith('https://'):
|
31 |
r = requests.get(url_or_path)
|