Examples added
Browse files
app.py
CHANGED
|
@@ -34,9 +34,12 @@ def infer(style, content):
|
|
| 34 |
|
| 35 |
recons_image = decoder(t)
|
| 36 |
return recons_image[0].numpy()
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
iface = gr.Interface(
|
| 39 |
fn=infer,
|
| 40 |
inputs=[gr.inputs.Image(label="style"),
|
| 41 |
gr.inputs.Image(label="content")],
|
| 42 |
-
outputs="image").launch()
|
|
|
|
| 34 |
|
| 35 |
recons_image = decoder(t)
|
| 36 |
return recons_image[0].numpy()
|
| 37 |
+
|
| 38 |
+
dog_example = ['Wassily_Composition.jpg','dog.jpg']
|
| 39 |
+
bridge_example = ['wave_composition.jpg', 'bridge.jpg']
|
| 40 |
|
| 41 |
iface = gr.Interface(
|
| 42 |
fn=infer,
|
| 43 |
inputs=[gr.inputs.Image(label="style"),
|
| 44 |
gr.inputs.Image(label="content")],
|
| 45 |
+
outputs="image", examples = [dog_example, bridge_example]).launch()
|