import os import gradio as gr # from huggingface_hub import HfApi # Retrieve the Hugging Face token from the environment variable # hf_token = os.getenv("ASR_SECRET") # print(f"Hugging Face Token: {hf_token}") # Fetch the model details using the Hugging Face API # model_info = HfApi().model_details("Joshua-Abok/finetuning-wav2vec-large-swahili-asr-model_v10", hf_token=HG_TOKEN) # # Load the model # gr.load(model_info).launch() gr.load("Joshua-Abok/finetuned_wav2vec_asr").launch()