ysharma HF staff commited on
Commit
b119071
1 Parent(s): ea4832a

Update tools/demo.py

Browse files

removed the incorrect `lines` parameter from some of the gradio components

Files changed (1) hide show
  1. tools/demo.py +1 -2
tools/demo.py CHANGED
@@ -155,7 +155,7 @@ def demo(runner, args):
155
  clear = gr.Button('Clear')
156
  with gr.Row():
157
  export = gr.Button('Deploy and Export ONNX Model')
158
- out_download = gr.File(lines=1, visible=False)
159
  max_num_boxes = gr.Slider(
160
  minimum=1,
161
  maximum=300,
@@ -179,7 +179,6 @@ def demo(runner, args):
179
  label='NMS Threshold')
180
  with gr.Column(scale=0.7):
181
  output_image = gr.Image(
182
- lines=20,
183
  type='pil',
184
  label='output image')
185
 
 
155
  clear = gr.Button('Clear')
156
  with gr.Row():
157
  export = gr.Button('Deploy and Export ONNX Model')
158
+ out_download = gr.File(visible=False)
159
  max_num_boxes = gr.Slider(
160
  minimum=1,
161
  maximum=300,
 
179
  label='NMS Threshold')
180
  with gr.Column(scale=0.7):
181
  output_image = gr.Image(
 
182
  type='pil',
183
  label='output image')
184