Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ tts_model = VitsModel.from_pretrained("facebook/mms-tts-eng")
|
|
52 |
# Function to convert audio to text using ASR
|
53 |
def transcribe(audio_filepath):
|
54 |
if audio_filepath is None:
|
55 |
-
raise gr.
|
56 |
|
57 |
utt_id = uuid.uuid4()
|
58 |
with tempfile.TemporaryDirectory() as tmpdir:
|
|
|
52 |
# Function to convert audio to text using ASR
|
53 |
def transcribe(audio_filepath):
|
54 |
if audio_filepath is None:
|
55 |
+
raise gr.Error("Please provide some input audio.")
|
56 |
|
57 |
utt_id = uuid.uuid4()
|
58 |
with tempfile.TemporaryDirectory() as tmpdir:
|