fairseq icon indicating copy to clipboard operation
fairseq copied to clipboard

Gradio

Open Eyobs-droid opened this issue 9 months ago • 2 comments

🐛 Bug

I was trying to use the mms using an api and the stt functionality doesn't work saying "Loaded as API: https://mms-meta-mms.hf.space ✔" followed by "An error occurred: The upstream Gradio app has raised an exception but has not enabled verbose error reporting. To enable, set show_error=True in launch()."

The tts is working

Here is the code sample

import os from gradio_client import Client

client = Client("mms-meta/MMS")

audio_file_path = "/home/eyoba/CascadeProjects/amharic_tts/common_voice_ti_33434915.mp3"

if not os.path.isfile(audio_file_path): print(f"Error: Audio file not found at {audio_file_path}") else: try: result = client.predict( audio_data="/home/eyoba/CascadeProjects/amharic_tts/common_voice_ti_33434915.mp3",
lang="tir tigrinya",
api_name="/predict"
) print(result) except Exception as e: print(f"An error occurred: {e}")

The audio being transcribed and see the text

  • fairseq Version (e.g., 1.0 or main): I don't have fairseq
  • PyTorch Version (e.g., 1.0): I dont have pytorch
  • OS (e.g., Linux): Linux mint 22 cinnamon, cinnamon version 6.2.9
  • How you installed fairseq (pip, source):
  • Build command you used (if compiling from source):
  • Python version: 3.12.3
  • CUDA/cuDNN version: No
  • GPU models and configuration: No
  • Any other relevant information:

Additional context

Eyobs-droid avatar Jan 30 '25 06:01 Eyobs-droid