Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -22,8 +22,8 @@ def initilize(media,pixel_size,checkbox1):
|
|
22 |
#Author: Alican Akca
|
23 |
if media.name.endswith('.gif'):
|
24 |
return Media().split(media.name,pixel_size, 'gif')
|
25 |
-
elif media.name.endswith('.mp4'):
|
26 |
-
|
27 |
else:
|
28 |
media = Image.open(media.name).convert("RGB")
|
29 |
media = cv2.cvtColor(np.asarray(face2paint(model, media)), cv2.COLOR_BGR2RGB)
|
@@ -51,8 +51,8 @@ outputs = [gr.Video(label="Pixed Media"),
|
|
51 |
gr.Image(label="Pixed Media"),
|
52 |
gr.File(label="Download")]
|
53 |
|
54 |
-
title = "
|
55 |
-
description = """
|
56 |
|
57 |
gr.Interface(fn = initilize,
|
58 |
inputs = inputs,
|
|
|
22 |
#Author: Alican Akca
|
23 |
if media.name.endswith('.gif'):
|
24 |
return Media().split(media.name,pixel_size, 'gif')
|
25 |
+
# elif media.name.endswith('.mp4'):
|
26 |
+
# return None #Media().split(media.name,pixel_size, "video")
|
27 |
else:
|
28 |
media = Image.open(media.name).convert("RGB")
|
29 |
media = cv2.cvtColor(np.asarray(face2paint(model, media)), cv2.COLOR_BGR2RGB)
|
|
|
51 |
gr.Image(label="Pixed Media"),
|
52 |
gr.File(label="Download")]
|
53 |
|
54 |
+
title = "픽세라 : 그림을 픽셀아트로 만드세요"
|
55 |
+
description = """현재는 사진만 가능합니다."""
|
56 |
|
57 |
gr.Interface(fn = initilize,
|
58 |
inputs = inputs,
|