Chao Xu commited on
Commit
bb83e2d
โ€ข
1 Parent(s): 1b3ad4a

keep demo_tmp

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. demo_tmp/.gitkeep +0 -0
app.py CHANGED
@@ -642,7 +642,7 @@ def run_demo(
642
  shutil.rmtree(tmp_dir)
643
  tmp_dir = tempfile.TemporaryDirectory(dir=os.path.join(os.path.dirname(__file__), 'demo_tmp'))
644
  print("create tmp_dir", tmp_dir.name)
645
- clear = [gr.update(value=[])] + [None] * 6 + [gr.update(visible=False)] * 2 + [None] * 8 + [gr.update(value=False)] * 8
646
  return (tmp_dir.name, *clear)
647
 
648
  placeholder = gr.Image(visible=False)
 
642
  shutil.rmtree(tmp_dir)
643
  tmp_dir = tempfile.TemporaryDirectory(dir=os.path.join(os.path.dirname(__file__), 'demo_tmp'))
644
  print("create tmp_dir", tmp_dir.name)
645
+ clear = [gr.update(value=[])] + [None] * 5 + [gr.update(visible=False)] * 2 + [None] * 8 + [gr.update(value=False)] * 8
646
  return (tmp_dir.name, *clear)
647
 
648
  placeholder = gr.Image(visible=False)
demo_tmp/.gitkeep ADDED
File without changes