Spaces:
Build error
Build error
rlawjdghek
commited on
Commit
β’
29ff616
1
Parent(s):
933eb0c
remove preview
Browse files
app.py
CHANGED
@@ -11,6 +11,7 @@ import gradio as gr
|
|
11 |
import torch
|
12 |
from omegaconf import OmegaConf
|
13 |
from PIL import Image
|
|
|
14 |
|
15 |
from cldm.model import create_model
|
16 |
from cldm.plms_hacked import PLMSSampler
|
@@ -24,6 +25,8 @@ sys.path.insert(0, str(PROJECT_ROOT))
|
|
24 |
from preprocess.humanparsing.run_parsing import Parsing
|
25 |
from preprocess.openpose.run_openpose import OpenPose
|
26 |
|
|
|
|
|
27 |
os.environ['GRADIO_TEMP_DIR'] = './tmp' # TODO: turn off when final upload
|
28 |
|
29 |
IMG_H = 512
|
@@ -194,8 +197,8 @@ with gr.Blocks(css='style.css') as demo:
|
|
194 |
examples_per_page=14,
|
195 |
examples=example_garment_ps)
|
196 |
with gr.Column():
|
197 |
-
result_gallery = gr.Image(label='Output', show_label=False,
|
198 |
-
# result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery",
|
199 |
with gr.Column():
|
200 |
run_button = gr.Button(value="Run")
|
201 |
# TODO: change default values (important!)
|
|
|
11 |
import torch
|
12 |
from omegaconf import OmegaConf
|
13 |
from PIL import Image
|
14 |
+
print("pip import done")
|
15 |
|
16 |
from cldm.model import create_model
|
17 |
from cldm.plms_hacked import PLMSSampler
|
|
|
25 |
from preprocess.humanparsing.run_parsing import Parsing
|
26 |
from preprocess.openpose.run_openpose import OpenPose
|
27 |
|
28 |
+
print("app import done")
|
29 |
+
|
30 |
os.environ['GRADIO_TEMP_DIR'] = './tmp' # TODO: turn off when final upload
|
31 |
|
32 |
IMG_H = 512
|
|
|
197 |
examples_per_page=14,
|
198 |
examples=example_garment_ps)
|
199 |
with gr.Column():
|
200 |
+
result_gallery = gr.Image(label='Output', show_label=False, scale=1)
|
201 |
+
# result_gallery = gr.Gallery(label='Output', show_label=False, elem_id="gallery", scale=1)
|
202 |
with gr.Column():
|
203 |
run_button = gr.Button(value="Run")
|
204 |
# TODO: change default values (important!)
|