manhkhanhUIT commited on
Commit
a950bb8
·
1 Parent(s): 927d60b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -109,6 +109,9 @@ def run_cmd(command):
109
  sys.exit(1)
110
 
111
  def run(image):
 
 
 
112
  os.makedirs("Temp")
113
  os.makedirs("Temp/input")
114
  print(type(image))
 
109
  sys.exit(1)
110
 
111
  def run(image):
112
+ if os.path.isdir("Temp"):
113
+ shutil.rmtree("Temp")
114
+
115
  os.makedirs("Temp")
116
  os.makedirs("Temp/input")
117
  print(type(image))