Update app.py
Browse files
app.py
CHANGED
|
@@ -257,7 +257,7 @@ def MyPlot(frame_id, src_orig, tar_orig, src_recon, tar_recon, src_Zt, tar_Zt, s
|
|
| 257 |
axs[1, 3].imshow(src_Zf_tar_Zt)
|
| 258 |
axs[1, 3].axis('off')
|
| 259 |
|
| 260 |
-
plt.subplots_adjust(hspace=0.
|
| 261 |
|
| 262 |
save_name = 'MyPlot_{}.png'.format(frame_id)
|
| 263 |
|
|
@@ -382,7 +382,7 @@ def run(source, action_source, hair_source, top_source, bottom_source, target, a
|
|
| 382 |
|
| 383 |
a = concat('MyPlot_')
|
| 384 |
|
| 385 |
-
return 'demo.gif'
|
| 386 |
|
| 387 |
|
| 388 |
gr.Interface(
|
|
@@ -409,13 +409,6 @@ gr.Interface(
|
|
| 409 |
],
|
| 410 |
outputs=[
|
| 411 |
gr.components.Image(type="file", label="Domain Disentanglement"),
|
| 412 |
-
gr.Markdown(
|
| 413 |
-
"""
|
| 414 |
-
Row 1 - Original source (left) and target (right) inputs\n
|
| 415 |
-
Row 2 - Reconstruction outputs\n
|
| 416 |
-
Row 3 -
|
| 417 |
-
"""
|
| 418 |
-
),
|
| 419 |
],
|
| 420 |
live=True,
|
| 421 |
cache_examples=True,
|
|
|
|
| 257 |
axs[1, 3].imshow(src_Zf_tar_Zt)
|
| 258 |
axs[1, 3].axis('off')
|
| 259 |
|
| 260 |
+
plt.subplots_adjust(hspace=0.0, wspace=0.0)
|
| 261 |
|
| 262 |
save_name = 'MyPlot_{}.png'.format(frame_id)
|
| 263 |
|
|
|
|
| 382 |
|
| 383 |
a = concat('MyPlot_')
|
| 384 |
|
| 385 |
+
return 'demo.gif'
|
| 386 |
|
| 387 |
|
| 388 |
gr.Interface(
|
|
|
|
| 409 |
],
|
| 410 |
outputs=[
|
| 411 |
gr.components.Image(type="file", label="Domain Disentanglement"),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 412 |
],
|
| 413 |
live=True,
|
| 414 |
cache_examples=True,
|