Spaces:
Paused
Paused
rick
commited on
patch...
Browse files- pages/main.py +2 -1
pages/main.py
CHANGED
|
@@ -522,7 +522,8 @@ def recorder_released():
|
|
| 522 |
try:
|
| 523 |
|
| 524 |
|
| 525 |
-
with tempfile.NamedTemporaryFile(suffix=".mp3", delete_on_close=False) as tmp_file:
|
|
|
|
| 526 |
audio.export(tmp_file, format="mp3")
|
| 527 |
tmp_file.close()
|
| 528 |
|
|
|
|
| 522 |
try:
|
| 523 |
|
| 524 |
|
| 525 |
+
#with tempfile.NamedTemporaryFile(suffix=".mp3", delete_on_close=False) as tmp_file:
|
| 526 |
+
with tempfile.NamedTemporaryFile(suffix=".mp3", delete=False) as tmp_file:
|
| 527 |
audio.export(tmp_file, format="mp3")
|
| 528 |
tmp_file.close()
|
| 529 |
|