Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def transform_image(face_image):
|
|
41 |
raise ValueError("Unsupported image format")
|
42 |
|
43 |
# Load the style image from the local path
|
44 |
-
style_image_path = "
|
45 |
style_image = Image.open(style_image_path)
|
46 |
|
47 |
# Perform the transformation using the configured pipeline
|
@@ -63,7 +63,7 @@ demo = gr.Interface(
|
|
63 |
inputs=gr.Image(label="Upload your face image"),
|
64 |
outputs=gr.Image(label="Your Soyjak"),
|
65 |
title="InstaSoyjak - turn anyone into a Soyjak",
|
66 |
-
description="All you need to do is upload an image. Please use responsibly.",
|
67 |
)
|
68 |
|
69 |
demo.queue(max_size=20)
|
|
|
41 |
raise ValueError("Unsupported image format")
|
42 |
|
43 |
# Load the style image from the local path
|
44 |
+
style_image_path = "./examples/poses/soyjak2.jpg"
|
45 |
style_image = Image.open(style_image_path)
|
46 |
|
47 |
# Perform the transformation using the configured pipeline
|
|
|
63 |
inputs=gr.Image(label="Upload your face image"),
|
64 |
outputs=gr.Image(label="Your Soyjak"),
|
65 |
title="InstaSoyjak - turn anyone into a Soyjak",
|
66 |
+
description="All you need to do is upload an image. Please use responsibly. Please follow me on Twitter if you like this space: https://twitter.com/angrypenguinPNG. Idea from Yacine, please give him a follow: https://twitter.com/yacineMTB.",
|
67 |
)
|
68 |
|
69 |
demo.queue(max_size=20)
|