Spaces:
Runtime error
Runtime error
Commit
·
b26e1ef
1
Parent(s):
3f45e36
update app.py
Browse files
app.py
CHANGED
@@ -894,9 +894,6 @@ def main_gradio(args):
|
|
894 |
if kosmos_enable:
|
895 |
task_types.append("Kosmos-2")
|
896 |
|
897 |
-
# input_image = gr.Image(source='upload', elem_id="image_upload", tool='sketch', type='pil', label="Upload",
|
898 |
-
# height=512, brush_color='#00FFFF', mask_opacity=0.6)
|
899 |
-
|
900 |
input_image = gr.ImageMask(sources='upload', elem_id="image_upload", type='pil', label="Upload",
|
901 |
brush=gr.Brush(colors=[brush_color], color_mode="fixed"))
|
902 |
task_type = gr.Radio(task_types, value="detection",
|
|
|
894 |
if kosmos_enable:
|
895 |
task_types.append("Kosmos-2")
|
896 |
|
|
|
|
|
|
|
897 |
input_image = gr.ImageMask(sources='upload', elem_id="image_upload", type='pil', label="Upload",
|
898 |
brush=gr.Brush(colors=[brush_color], color_mode="fixed"))
|
899 |
task_type = gr.Radio(task_types, value="detection",
|