sbapan41 commited on
Commit
b9b4dea
Β·
1 Parent(s): 1d40919

remove mp4

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -20,8 +20,8 @@ def transcribe(audio):
20
 
21
  # Optional: validate file extension
22
  ext = os.path.splitext(audio)[1].lower()
23
- if ext not in [".caf", ".au", ".opus", ".amr", ".alac", ".aiff", ".wma", ".m4a", ".ogg", ".aac", ".flac", ".wav", ".mp3", ".mp4"]:
24
- return f"❌ Unsupported file format: {ext}. Please upload .caf, .au, .opus, .amr, .alac, .aiff, .wma, .m4a, .ogg, .aac, .flac, .wav, .mp3 or .mp4 files."
25
 
26
  result = pipe(audio)
27
  return result["text"]
@@ -36,7 +36,7 @@ interface = gr.Interface(
36
  ),
37
  outputs=gr.Textbox(label="πŸ“ Transcription"),
38
  title="πŸŽ™οΈ Quantum Speech Recognizer",
39
- description="Upload an audio file (.caf, .au, .opus, .amr, .alac, .aiff, .wma, .m4a, .ogg, .aac, .flac, .wav, .mp3, .mp4)<br>***to transcribe it using the Quantum_STT model***."
40
  )
41
 
42
  # Launch the interface
 
20
 
21
  # Optional: validate file extension
22
  ext = os.path.splitext(audio)[1].lower()
23
+ if ext not in [".caf", ".au", ".opus", ".amr", ".alac", ".aiff", ".wma", ".m4a", ".ogg", ".aac", ".flac", ".wav", ".mp3"]:
24
+ return f"❌ Unsupported file format: {ext}. Please upload .caf, .au, .opus, .amr, .alac, .aiff, .wma, .m4a, .ogg, .aac, .flac, .wav or .mp3 files."
25
 
26
  result = pipe(audio)
27
  return result["text"]
 
36
  ),
37
  outputs=gr.Textbox(label="πŸ“ Transcription"),
38
  title="πŸŽ™οΈ Quantum Speech Recognizer",
39
+ description="Upload an audio file (.caf, .au, .opus, .amr, .alac, .aiff, .wma, .m4a, .ogg, .aac, .flac, .wav, .mp3)<br>***to transcribe it using the Quantum_STT model***."
40
  )
41
 
42
  # Launch the interface