ryusei-iki
commited on
Commit
•
b9fcbbd
1
Parent(s):
a675130
exapmle gohho
Browse files
app.py
CHANGED
@@ -34,8 +34,21 @@ def preprocess(content_img,style_img):
|
|
34 |
return transferred_img
|
35 |
|
36 |
|
37 |
-
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
|
40 |
interface = gr.Interface(
|
41 |
fn=preprocess,
|
|
|
34 |
return transferred_img
|
35 |
|
36 |
|
37 |
+
# img1_file = 'huggingface/otd/gohho.png'
|
38 |
+
img1_file = 'gohho.png'
|
39 |
+
|
40 |
+
img1 = Image.open(img1_file)
|
41 |
+
# img2_file = 'huggingface/otd/sea.png'
|
42 |
+
img2_file = 'sea.png'
|
43 |
+
img2 = Image.open(img2_file)
|
44 |
+
|
45 |
+
|
46 |
+
gr_img = gr.Image(np.array(img1))
|
47 |
+
gr_img2 = gr.Image(np.array(img2))
|
48 |
+
|
49 |
+
|
50 |
+
# gr_img = gr.inputs.Image()
|
51 |
+
# gr_img2 = gr.inputs.Image()
|
52 |
|
53 |
interface = gr.Interface(
|
54 |
fn=preprocess,
|
gohho.png
ADDED
sea.png
ADDED