Spaces:
Running on Zero
Running on Zero
fix bug
Browse files
app.py
CHANGED
|
@@ -48,9 +48,6 @@ def handle_audio(url, audio_path, num_speakers):
|
|
| 48 |
|
| 49 |
audio_path = preprocess_audio(audio_path)
|
| 50 |
res = diarize_audio(audio_path, num_speakers)
|
| 51 |
-
# Clean up temporary file
|
| 52 |
-
if os.path.exists(audio_path):
|
| 53 |
-
os.remove(audio_path)
|
| 54 |
return res
|
| 55 |
|
| 56 |
|
|
|
|
| 48 |
|
| 49 |
audio_path = preprocess_audio(audio_path)
|
| 50 |
res = diarize_audio(audio_path, num_speakers)
|
|
|
|
|
|
|
|
|
|
| 51 |
return res
|
| 52 |
|
| 53 |
|