uyen22 commited on
Commit
5755fcb
·
verified ·
1 Parent(s): 639ba44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -57,7 +57,7 @@ with gr.Blocks() as demo:
57
  gr.Markdown("# AI Object Removal using Magic Studio API")
58
 
59
  # Tải ảnh lên từ người dùng và cho phép vẽ mask đè trực tiếp lên ảnh
60
- image_input = gr.Image(type="numpy", tool="sketch", label="Upload an image and draw mask", brush_radius=20)
61
 
62
  # Khu vực hiển thị kết quả
63
  result_output = gr.Image(label="Output Image")
 
57
  gr.Markdown("# AI Object Removal using Magic Studio API")
58
 
59
  # Tải ảnh lên từ người dùng và cho phép vẽ mask đè trực tiếp lên ảnh
60
+ image_input = gr.Image(type="numpy", label="Upload an image and draw mask", tool="editor", brush_radius=20, drawing_mode="freedraw")
61
 
62
  # Khu vực hiển thị kết quả
63
  result_output = gr.Image(label="Output Image")