Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,13 +4,13 @@ os.system("git clone --recursive https://github.com/JD-P/cloob-latent-diffusion"
|
|
4 |
os.system("cd cloob-latent-diffusion;pip install omegaconf pillow pytorch-lightning einops wandb ftfy regex ./CLIP")
|
5 |
|
6 |
# setup some example images
|
7 |
-
examples = []
|
8 |
-
EXAMPLES_DIR = 'examples'
|
9 |
-
DEFAULT_PROMPT = "<image>"
|
10 |
-
if os.path.isdir(EXAMPLES_DIR):
|
11 |
-
for file in os.listdir(EXAMPLES_DIR):
|
12 |
-
path = EXAMPLES_DIR + "/" + file
|
13 |
-
examples.append([path, DEFAULT_PROMPT])
|
14 |
|
15 |
import argparse
|
16 |
from functools import partial
|
|
|
4 |
os.system("cd cloob-latent-diffusion;pip install omegaconf pillow pytorch-lightning einops wandb ftfy regex ./CLIP")
|
5 |
|
6 |
# setup some example images
|
7 |
+
#examples = []
|
8 |
+
#EXAMPLES_DIR = 'examples'
|
9 |
+
#DEFAULT_PROMPT = "<image>"
|
10 |
+
#if os.path.isdir(EXAMPLES_DIR):
|
11 |
+
# for file in os.listdir(EXAMPLES_DIR):
|
12 |
+
# path = EXAMPLES_DIR + "/" + file
|
13 |
+
# examples.append([path, DEFAULT_PROMPT])
|
14 |
|
15 |
import argparse
|
16 |
from functools import partial
|