ldkong commited on
Commit
3c410f4
Β·
1 Parent(s): 159a124

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -420,14 +420,14 @@ def run(domain_source, action_source, hair_source, top_source, bottom_source, do
420
 
421
 
422
  gr.Interface(
423
- run,
424
  inputs=[
425
- gr.Textbox(value="Source Avatar - Human", show_label=False, interactive=False),
426
  gr.Radio(choices=["slash", "spellcard", "walk"], value="slash"),
427
  gr.Radio(choices=["green", "yellow", "rose", "red", "wine"], value="green"),
428
  gr.Radio(choices=["brown", "blue", "white"], value="brown"),
429
  gr.Radio(choices=["white", "golden", "red", "silver"], value="white"),
430
- gr.Textbox(value="Target Avatar - Alien", show_label=False, interactive=False),
431
  gr.Radio(choices=["slash", "spellcard", "walk"], value="walk"),
432
  gr.Radio(choices=["violet", "silver", "purple", "grey", "golden"], value="golden"),
433
  gr.Radio(choices=["grey", "khaki", "linen", "ocre"], value="ocre"),
@@ -437,5 +437,6 @@ gr.Interface(
437
  gr.components.Image(type="file", label="Domain Disentanglement"),
438
  ],
439
  live=True,
 
440
  title="TransferVAE for Unsupervised Video Domain Adaptation",
441
- ).launch()
 
420
 
421
 
422
  gr.Interface(
423
+ fn=run,
424
  inputs=[
425
+ gr.Textbox(value="Source Avatar - Human 😢", show_label=False, interactive=False),
426
  gr.Radio(choices=["slash", "spellcard", "walk"], value="slash"),
427
  gr.Radio(choices=["green", "yellow", "rose", "red", "wine"], value="green"),
428
  gr.Radio(choices=["brown", "blue", "white"], value="brown"),
429
  gr.Radio(choices=["white", "golden", "red", "silver"], value="white"),
430
+ gr.Textbox(value="Target Avatar - Alien πŸ‘½", show_label=False, interactive=False),
431
  gr.Radio(choices=["slash", "spellcard", "walk"], value="walk"),
432
  gr.Radio(choices=["violet", "silver", "purple", "grey", "golden"], value="golden"),
433
  gr.Radio(choices=["grey", "khaki", "linen", "ocre"], value="ocre"),
 
437
  gr.components.Image(type="file", label="Domain Disentanglement"),
438
  ],
439
  live=True,
440
+ cache_examples=True,
441
  title="TransferVAE for Unsupervised Video Domain Adaptation",
442
+ ).launch(share=True)