jiuuee commited on
Commit
8eaeb08
1 Parent(s): b35863e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.InterfaceError("Please provide some input audio.")
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: