Nick088 commited on
Commit
aeaaa71
·
verified ·
1 Parent(s): 94bc506

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -62,10 +62,8 @@ def inference_image(image, size):
62
  def inference_video(video, size):
63
  _id = randint(1, 10000)
64
  INPUT_DIR = "tmp/" + str(_id)
65
- if os.path.isdir(INPUT_DIR):
66
- os.system("rm -rf " + INPUT_DIR)
67
- else:
68
- os.system("mkdir " + INPUT_DIR)
69
  os.system(f"cd {INPUT_DIR}")
70
  upload_folder = 'upload'
71
  result_folder = 'results'
 
62
  def inference_video(video, size):
63
  _id = randint(1, 10000)
64
  INPUT_DIR = "tmp/" + str(_id)
65
+ os.system("rm -rf " + INPUT_DIR)
66
+ os.system("mkdir -p" + INPUT_DIR)
 
 
67
  os.system(f"cd {INPUT_DIR}")
68
  upload_folder = 'upload'
69
  result_folder = 'results'