Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -78,12 +78,10 @@ def process_audio(audio_file, translate=False):
|
|
| 78 |
# else:
|
| 79 |
# full_text += segment['text'] + " "
|
| 80 |
# transcription += "\n"
|
| 81 |
-
|
| 82 |
# return transcription, full_text
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
raise gr.Error(f"Processing failed: {str(e)}")
|
| 87 |
|
| 88 |
|
| 89 |
@spaces.GPU(duration=60)
|
|
|
|
| 78 |
# else:
|
| 79 |
# full_text += segment['text'] + " "
|
| 80 |
# transcription += "\n"
|
|
|
|
| 81 |
# return transcription, full_text
|
| 82 |
+
# except Exception as e:
|
| 83 |
+
# logger.error(f"Audio processing failed: {str(e)}")
|
| 84 |
+
# raise gr.Error(f"Processing failed: {str(e)}")
|
|
|
|
| 85 |
|
| 86 |
|
| 87 |
@spaces.GPU(duration=60)
|