Yatheshr commited on
Commit
126e531
Β·
verified Β·
1 Parent(s): b7d62f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -64,8 +64,8 @@ with gr.Blocks() as demo:
64
  with gr.Tab("πŸͺ„ Manipulate Uploaded Image"):
65
  token2 = gr.Textbox(label="πŸ” Hugging Face Token", type="password")
66
  prompt2 = gr.Textbox(label="Edit Prompt (e.g., 'remove the background')")
67
- img_input = gr.Image(label="Upload Image", type="pil", tool="editor")
68
- mask_input = gr.Image(label="Draw Mask", type="pil", tool="sketch")
69
  status2 = gr.Textbox(label="Status")
70
  edited_img = gr.Image(label="Edited Image")
71
  edit_btn = gr.Button("Apply Edit")
 
64
  with gr.Tab("πŸͺ„ Manipulate Uploaded Image"):
65
  token2 = gr.Textbox(label="πŸ” Hugging Face Token", type="password")
66
  prompt2 = gr.Textbox(label="Edit Prompt (e.g., 'remove the background')")
67
+ img_input = gr.Image(label="Upload Image", type="pil") # ❌ tool removed
68
+ mask_input = gr.Image(label="Draw Mask", type="pil") # ❌ tool removed
69
  status2 = gr.Textbox(label="Status")
70
  edited_img = gr.Image(label="Edited Image")
71
  edit_btn = gr.Button("Apply Edit")