Vision-CAIR commited on
Commit
0e791ed
Β·
verified Β·
1 Parent(s): e6b602e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -546,7 +546,8 @@ with gr.Blocks() as demo:
546
 
547
  with gr.Row():
548
  with gr.Column(scale=0.5):
549
- image = gr.Image(type="pil", tool="sketch" ,brush_radius=20)
 
550
 
551
  temperature = gr.Slider(
552
  minimum=0.1,
@@ -643,5 +644,5 @@ with gr.Blocks() as demo:
643
  )
644
 
645
  clear.click(gradio_reset, [chat_state, img_list], [chatbot, image, text_input, chat_state, img_list], queue=False)
646
-
647
- demo.launch(share=True, enable_queue=True)
 
546
 
547
  with gr.Row():
548
  with gr.Column(scale=0.5):
549
+ # image = gr.Image(type="pil", tool="sketch" ,brush_radius=20)
550
+ image = gr.ImageEditor(type="pil")
551
 
552
  temperature = gr.Slider(
553
  minimum=0.1,
 
644
  )
645
 
646
  clear.click(gradio_reset, [chat_state, img_list], [chatbot, image, text_input, chat_state, img_list], queue=False)
647
+ demo.queue().launch(share=True)
648
+ # demo.launch(share=True, enable_queue=True)