Nick088 commited on
Commit
1463a87
·
verified ·
1 Parent(s): a9756a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -61,9 +61,10 @@ def inference_image(image, size):
61
 
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 " + INPUT_DIR)
 
67
  upload_folder = 'upload'
68
  result_folder = 'results'
69
  video_folder = 'videos'
 
61
 
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 " + INPUT_DIR)
67
+ os.system(f"cd {INPUT_DIR")
68
  upload_folder = 'upload'
69
  result_folder = 'results'
70
  video_folder = 'videos'