drhead commited on
Commit
c5429ee
·
verified ·
1 Parent(s): b0673d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -287,7 +287,7 @@ with gr.Blocks(css=custom_css) as demo:
287
  cam_state = gr.State()
288
  with gr.Row():
289
  with gr.Column():
290
- image_input = gr.Image(label="Source", sources=['upload'], type='pil', height=512, show_label=False)
291
  threshold_slider = gr.Slider(minimum=0.00, maximum=1.00, step=0.01, value=0.20, label="Tag Threshold")
292
  cam_slider = gr.Slider(minimum=0.00, maximum=1.00, step=0.01, value=0.40, label="CAM Threshold", elem_classes="inferno-slider")
293
  alpha_slider = gr.Slider(minimum=0.00, maximum=1.00, step=0.01, value=0.60, label="CAM Alpha")
 
287
  cam_state = gr.State()
288
  with gr.Row():
289
  with gr.Column():
290
+ image_input = gr.Image(label="Source", sources=['upload', 'clipboard'], type='pil', height=512, show_label=False)
291
  threshold_slider = gr.Slider(minimum=0.00, maximum=1.00, step=0.01, value=0.20, label="Tag Threshold")
292
  cam_slider = gr.Slider(minimum=0.00, maximum=1.00, step=0.01, value=0.40, label="CAM Threshold", elem_classes="inferno-slider")
293
  alpha_slider = gr.Slider(minimum=0.00, maximum=1.00, step=0.01, value=0.60, label="CAM Alpha")