Upload app.py
Browse files
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
|