Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
•
a0f947f
1
Parent(s):
62b8ae9
Update app.py
Browse files
app.py
CHANGED
@@ -16,9 +16,9 @@ def inference(content,style):
|
|
16 |
}])
|
17 |
return Image.fromarray(np.uint8(result[0]['data'])[:,:,::-1]).convert('RGB')
|
18 |
|
19 |
-
title = "
|
20 |
-
description = "Gradio demo for
|
21 |
-
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/
|
22 |
examples=[['people.jpeg']]
|
23 |
iface = gr.Interface(inference, inputs=[gr.inputs.Image(type="file",label='content'),gr.inputs.Image(type="file",label='style')], outputs=gr.outputs.Image(type="pil"),enable_queue=True,title=title,article=article,description=description,examples=examples)
|
24 |
iface.launch()
|
|
|
16 |
}])
|
17 |
return Image.fromarray(np.uint8(result[0]['data'])[:,:,::-1]).convert('RGB')
|
18 |
|
19 |
+
title = " StyleProNet"
|
20 |
+
description = "Gradio demo for Parameter-Free Style Projection for Arbitrary Style Transfer. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."
|
21 |
+
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2003.07694'target='_blank'>Parameter-Free Style Projection for Arbitrary Style Transfer</a> | <a href='https://github.com/PaddlePaddle/PaddleHub' target='_blank'>Github Repo</a></p>"
|
22 |
examples=[['people.jpeg']]
|
23 |
iface = gr.Interface(inference, inputs=[gr.inputs.Image(type="file",label='content'),gr.inputs.Image(type="file",label='style')], outputs=gr.outputs.Image(type="pil"),enable_queue=True,title=title,article=article,description=description,examples=examples)
|
24 |
iface.launch()
|