hideosnes commited on
Commit
31b607a
1 Parent(s): 81c93cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -16,6 +16,7 @@ import gradio as gr
16
  from huggingface_hub import hf_hub_download, snapshot_download
17
  from ip_adapter import IPAdapterXL
18
  from safetensors.torch import load_file
 
19
 
20
  snapshot_download(
21
  repo_id="h94/IP-Adapter", allow_patterns="sdxl_models/*", local_dir="."
@@ -256,10 +257,8 @@ with block:
256
  with gr.Row():
257
  with gr.Column():
258
  with gr.Row():
259
- with gr.Column():
260
- image_pil = gr.Image(label="Style Image", type="pil")
261
- with gr.Column():
262
- processed_image = gr.Image(label="Preprocess uWu", interactive=False)
263
  with gr.Column():
264
  prompt = gr.Textbox(
265
  label="Prompt",
 
16
  from huggingface_hub import hf_hub_download, snapshot_download
17
  from ip_adapter import IPAdapterXL
18
  from safetensors.torch import load_file
19
+ from rembg import remove
20
 
21
  snapshot_download(
22
  repo_id="h94/IP-Adapter", allow_patterns="sdxl_models/*", local_dir="."
 
257
  with gr.Row():
258
  with gr.Column():
259
  with gr.Row():
260
+ # with gr.Column():
261
+ image_pil_pil = gr.Image(label="Style Image", type="pil")
 
 
262
  with gr.Column():
263
  prompt = gr.Textbox(
264
  label="Prompt",