xiaoming32236046 commited on
Commit
96ac448
·
verified ·
1 Parent(s): 89b7e60

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -76,7 +76,7 @@ with gr.Blocks() as demo:
76
 
77
  with gr.Row():
78
  input_image = gr.Image(label="上传图像", type="numpy")
79
- roi_sketch = gr.Image(label="绘制ROI", source="upload", tool="sketch", type="numpy", interactive=True)
80
 
81
  with gr.Row():
82
  result_text = gr.Textbox(label="结果")
 
76
 
77
  with gr.Row():
78
  input_image = gr.Image(label="上传图像", type="numpy")
79
+ roi_sketch = gr.Sketchpad(label="绘制ROI", type="numpy", shape=(256, 256))
80
 
81
  with gr.Row():
82
  result_text = gr.Textbox(label="结果")