amildravid4292 commited on
Commit
10ead40
·
verified ·
1 Parent(s): 826c18e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import os
2
- os.system("pip uninstall -y gradio")
3
- os.system('pip install gradio==4.0.0')
4
  #3.43.1
5
  import torch
6
  import torchvision
@@ -435,10 +435,10 @@ with gr.Blocks(css="style.css") as demo:
435
  with gr.Column():
436
  with gr.Row():
437
  with gr.Column():
438
- input_image = gr.Image(source='upload', elem_id="image_upload", tool='sketch', type='pil', label="Upload image and draw to define mask",
439
- height=512, width=512, brush_color='#00FFFF', mask_opacity=0.6)
440
- # input_image = gr.ImageEditor(elem_id="image_upload", type='pil', label="Upload image and draw to define mask",
441
- # height=512, width=512, brush=gr.Brush(), layers=False)
442
  with gr.Row():
443
  sample = gr.Button("🎲 Sample New Model")
444
  invert_button = gr.Button("⏪ Invert")
 
1
  import os
2
+ # os.system("pip uninstall -y gradio")
3
+ # os.system('pip install gradio==4.0.0')
4
  #3.43.1
5
  import torch
6
  import torchvision
 
435
  with gr.Column():
436
  with gr.Row():
437
  with gr.Column():
438
+ #input_image = gr.Image(source='upload', elem_id="image_upload", tool='sketch', type='pil', label="Upload image and draw to define mask",
439
+ # height=512, width=512, brush_color='#00FFFF', mask_opacity=0.6)
440
+ input_image = gr.ImageEditor(elem_id="image_upload", type='pil', label="Upload image and draw to define mask",
441
+ height=512, width=512, brush=gr.Brush(), layers=False)
442
  with gr.Row():
443
  sample = gr.Button("🎲 Sample New Model")
444
  invert_button = gr.Button("⏪ Invert")