0xrushi commited on
Commit
10c794f
1 Parent(s): df0eb4f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -161,9 +161,16 @@ def get_imgs(base_image_path, style_reference_image_path):
161
 
162
  title = "Neural style transfer"
163
  description = "Gradio Demo for Neural style transfer. To use it, simply upload a base image and a style image"
 
 
 
 
 
 
164
  content = gr.inputs.Image(shape=None, image_mode="RGB", invert_colors=False, source="upload", tool="editor", type="filepath", label=None, optional=False)
165
  style = gr.inputs.Image(shape=None, image_mode="RGB", invert_colors=False, source="upload", tool="editor", type="filepath", label=None, optional=False)
166
  gr.Interface(get_imgs, inputs=[content, style], outputs=["image"],
167
  title=title,
168
  description=description,
 
169
  examples=[["base.jpg", "style.jpg"]]).launch(enable_queue=True)
 
161
 
162
  title = "Neural style transfer"
163
  description = "Gradio Demo for Neural style transfer. To use it, simply upload a base image and a style image"
164
+ article = """<p style='text-align: center'>
165
+ <a href='https://keras.io/examples/generative/neural_style_transfer/' target='_blank'>Keras Example given by fchollet</a>
166
+ <br>
167
+ Space by @rushic24
168
+ </p>
169
+ """
170
  content = gr.inputs.Image(shape=None, image_mode="RGB", invert_colors=False, source="upload", tool="editor", type="filepath", label=None, optional=False)
171
  style = gr.inputs.Image(shape=None, image_mode="RGB", invert_colors=False, source="upload", tool="editor", type="filepath", label=None, optional=False)
172
  gr.Interface(get_imgs, inputs=[content, style], outputs=["image"],
173
  title=title,
174
  description=description,
175
+ article=article,
176
  examples=[["base.jpg", "style.jpg"]]).launch(enable_queue=True)