ldkong commited on
Commit
67fddb0
β€’
1 Parent(s): 3476eae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -270,7 +270,7 @@ model.load_state_dict(torch.load('TransferVAE.pth.tar', map_location=torch.devic
270
  model.eval()
271
 
272
 
273
- def run(action_source, hair_source, top_source, bottom_source, domain_target, action_target, hair_target, top_target, bottom_target):
274
 
275
  # == Source Avatar ==
276
  # body
@@ -390,14 +390,18 @@ gr.Interface(
390
  inputs=[
391
  gr.Markdown(
392
  """
393
- Source Avatar - Human 😢
394
  """
395
  ),
396
  gr.Radio(choices=["slash", "spellcard", "walk"], value="slash"),
397
  gr.Radio(choices=["green", "yellow", "rose", "red", "wine"], value="green"),
398
  gr.Radio(choices=["brown", "blue", "white"], value="brown"),
399
  gr.Radio(choices=["white", "golden", "red", "silver"], value="white"),
400
- gr.Textbox(value="Target Avatar - Alien πŸ‘½", show_label=False, interactive=False),
 
 
 
 
401
  gr.Radio(choices=["slash", "spellcard", "walk"], value="walk"),
402
  gr.Radio(choices=["violet", "silver", "purple", "grey", "golden"], value="golden"),
403
  gr.Radio(choices=["grey", "khaki", "linen", "ocre"], value="ocre"),
 
270
  model.eval()
271
 
272
 
273
+ def run(action_source, hair_source, top_source, bottom_source, action_target, hair_target, top_target, bottom_target):
274
 
275
  # == Source Avatar ==
276
  # body
 
390
  inputs=[
391
  gr.Markdown(
392
  """
393
+ Source Avatar - Human πŸ‘¦πŸ»
394
  """
395
  ),
396
  gr.Radio(choices=["slash", "spellcard", "walk"], value="slash"),
397
  gr.Radio(choices=["green", "yellow", "rose", "red", "wine"], value="green"),
398
  gr.Radio(choices=["brown", "blue", "white"], value="brown"),
399
  gr.Radio(choices=["white", "golden", "red", "silver"], value="white"),
400
+ gr.Markdown(
401
+ """
402
+ Target Avatar - Alien πŸ‘½
403
+ """
404
+ ),
405
  gr.Radio(choices=["slash", "spellcard", "walk"], value="walk"),
406
  gr.Radio(choices=["violet", "silver", "purple", "grey", "golden"], value="golden"),
407
  gr.Radio(choices=["grey", "khaki", "linen", "ocre"], value="ocre"),