Spaces:
Build error
Build error
Commit ·
b06d4e9
1
Parent(s): f62b596
Fixes in the audio file deletion code
Browse files
app.py
CHANGED
|
@@ -88,8 +88,8 @@ def notify_parent_of_exit():
|
|
| 88 |
logger.error("The cleaner thread has exited. Check!!")
|
| 89 |
|
| 90 |
def clean_up_audio_files(sender_id):
|
| 91 |
-
command = f"rm -f /tmp/{sender_id}*"
|
| 92 |
-
subprocess.run(command, text = True)
|
| 93 |
|
| 94 |
# Your WhatsApp verification token
|
| 95 |
VERIFY_TOKEN = os.getenv("WHATSAPP_VERIFY_TOKEN", "your_verification_token")
|
|
|
|
| 88 |
logger.error("The cleaner thread has exited. Check!!")
|
| 89 |
|
| 90 |
def clean_up_audio_files(sender_id):
|
| 91 |
+
command = f"rm -f /tmp/*{sender_id}*"
|
| 92 |
+
subprocess.run(command, text = True, shell = True)
|
| 93 |
|
| 94 |
# Your WhatsApp verification token
|
| 95 |
VERIFY_TOKEN = os.getenv("WHATSAPP_VERIFY_TOKEN", "your_verification_token")
|