Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -34,9 +34,6 @@ def transcribe(inputs, previous_transcription):
|
|
34 |
transcription = pipe(filepath, batch_size=BATCH_SIZE, generate_kwargs={"task": "transcribe"}, return_timestamps=False)["text"]
|
35 |
previous_transcription += transcription
|
36 |
|
37 |
-
# Remove the Temporary File after Transcription
|
38 |
-
os.remove(filepath)
|
39 |
-
|
40 |
return previous_transcription
|
41 |
except Exception as e:
|
42 |
print(f"Error during Transcription: {e}")
|
|
|
34 |
transcription = pipe(filepath, batch_size=BATCH_SIZE, generate_kwargs={"task": "transcribe"}, return_timestamps=False)["text"]
|
35 |
previous_transcription += transcription
|
36 |
|
|
|
|
|
|
|
37 |
return previous_transcription
|
38 |
except Exception as e:
|
39 |
print(f"Error during Transcription: {e}")
|