aka7774 commited on
Commit
310801b
1 Parent(s): e96ebdd

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,10 +15,10 @@ def run(url, mode):
15
 
16
  if url != last_url:
17
  last_url = url
18
- if os.path.exists(last_video):
19
  os.remove(last_video)
20
  last_video = None
21
- if os.path.exists(last_audio):
22
  os.remove(last_audio)
23
  last_audio = None
24
  last_chat = None
 
15
 
16
  if url != last_url:
17
  last_url = url
18
+ if last_video and os.path.exists(last_video):
19
  os.remove(last_video)
20
  last_video = None
21
+ if last_audio and os.path.exists(last_audio):
22
  os.remove(last_audio)
23
  last_audio = None
24
  last_chat = None