Update app.py
Browse files
app.py
CHANGED
@@ -100,18 +100,7 @@ demo = gr.Interface(
|
|
100 |
outputs=gr.Image(type="pil", label="Result"),
|
101 |
title="Neural Style Transfer",
|
102 |
description="""
|
103 |
-
## Neural Style Transfer
|
104 |
Upload a content image and a style image to create a stylized version of your content image.
|
105 |
-
|
106 |
-
### How to use:
|
107 |
-
1. Upload your content image (the image you want to style)
|
108 |
-
2. Upload your style image (the image whose style you want to apply)
|
109 |
-
3. Click 'Submit' and wait for the result
|
110 |
-
|
111 |
-
### Tips:
|
112 |
-
- For best results, use clear, high-quality images
|
113 |
-
- The style image's characteristics will be transferred to your content image
|
114 |
-
- Processing may take a few seconds depending on image size
|
115 |
""",
|
116 |
examples=[
|
117 |
["Content_Images/contnt12.jpg", "VG516.jpg"],
|
@@ -128,5 +117,5 @@ if __name__ == "__main__":
|
|
128 |
demo.launch(
|
129 |
server_name="0.0.0.0",
|
130 |
server_port=7860,
|
131 |
-
share=
|
132 |
)
|
|
|
100 |
outputs=gr.Image(type="pil", label="Result"),
|
101 |
title="Neural Style Transfer",
|
102 |
description="""
|
|
|
103 |
Upload a content image and a style image to create a stylized version of your content image.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
""",
|
105 |
examples=[
|
106 |
["Content_Images/contnt12.jpg", "VG516.jpg"],
|
|
|
117 |
demo.launch(
|
118 |
server_name="0.0.0.0",
|
119 |
server_port=7860,
|
120 |
+
share=True # Set to False for Hugging Face Spaces
|
121 |
)
|