File size: 511 Bytes
2833649 58c7abf dfdd9e9 d32c550 dfdd9e9 58c7abf dfdd9e9 d32c550 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
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() |