multimodalart HF Staff commited on
Commit
9a1f8ec
·
verified ·
1 Parent(s): 973f9e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -252,7 +252,7 @@ def start_items():
252
  thick = debias(thick, "Pale_Skin", df, pinverse, device)
253
  thick = debias(thick, "Heavy_Makeup", df, pinverse, device)
254
 
255
-
256
 
257
  class CustomImageDataset(Dataset):
258
  def __init__(self, images, transform=None):
@@ -417,7 +417,7 @@ with gr.Blocks(css="style.css") as demo:
417
  with gr.Column():
418
  gr.Markdown("""1) Either sample a new model, or upload an image (optionally draw a mask over the head) and click `invert`.""")
419
  sample = gr.Button("🎲 Sample New Model")
420
- input_image = gr.Image(source='upload', elem_id="image_upload", tool='sketch', type='pil', label="Reference Identity",
421
  width=512, height=512, brush_color='#00FFFF', mask_opacity=0.4)
422
 
423
  with gr.Row():
 
252
  thick = debias(thick, "Pale_Skin", df, pinverse, device)
253
  thick = debias(thick, "Heavy_Makeup", df, pinverse, device)
254
 
255
+ start_items()
256
 
257
  class CustomImageDataset(Dataset):
258
  def __init__(self, images, transform=None):
 
417
  with gr.Column():
418
  gr.Markdown("""1) Either sample a new model, or upload an image (optionally draw a mask over the head) and click `invert`.""")
419
  sample = gr.Button("🎲 Sample New Model")
420
+ input_image = gr.Image(elem_id="image_upload", tool='sketch', type='pil', label="Reference Identity",
421
  width=512, height=512, brush_color='#00FFFF', mask_opacity=0.4)
422
 
423
  with gr.Row():