Updated the demo file, cause while using Gradio API it required .launch(show_error=True).

#13
by Mujeeb78 - opened
Files changed (1) hide show
  1. tools/demo.py +1 -1
tools/demo.py CHANGED
@@ -210,7 +210,7 @@ def demo(runner, args, cfg):
210
  export.click(partial(export_model, runner, args.checkpoint),
211
  [input_text, max_num_boxes, score_thr, nms_thr],
212
  [out_download, out_download])
213
- demo.launch(server_name='0.0.0.0')
214
 
215
 
216
  if __name__ == '__main__':
 
210
  export.click(partial(export_model, runner, args.checkpoint),
211
  [input_text, max_num_boxes, score_thr, nms_thr],
212
  [out_download, out_download])
213
+ demo.launch(server_name='0.0.0.0', show_error=True)
214
 
215
 
216
  if __name__ == '__main__':