Joshua-Abok commited on
Commit
d32c550
β€’
1 Parent(s): 2a48222

change to finetuned_wav2vec_asr

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -3,7 +3,8 @@ import gradio as gr
3
  # from huggingface_hub import HfApi
4
 
5
  # Retrieve the Hugging Face token from the environment variable
6
- HG_TOKEN = os.getenv("HG")
 
7
 
8
  # Fetch the model details using the Hugging Face API
9
  # model_info = HfApi().model_details("Joshua-Abok/finetuning-wav2vec-large-swahili-asr-model_v10", hf_token=HG_TOKEN)
@@ -11,4 +12,4 @@ HG_TOKEN = os.getenv("HG")
11
  # # Load the model
12
  # gr.load(model_info).launch()
13
 
14
- gr.load("models/Joshua-Abok/finetuning-wav2vec-large-swahili-asr-model_v10", hf_token=HG_TOKEN).launch()
 
3
  # from huggingface_hub import HfApi
4
 
5
  # Retrieve the Hugging Face token from the environment variable
6
+ # hf_token = os.getenv("ASR_SECRET")
7
+ # print(f"Hugging Face Token: {hf_token}")
8
 
9
  # Fetch the model details using the Hugging Face API
10
  # model_info = HfApi().model_details("Joshua-Abok/finetuning-wav2vec-large-swahili-asr-model_v10", hf_token=HG_TOKEN)
 
12
  # # Load the model
13
  # gr.load(model_info).launch()
14
 
15
+ gr.load("Joshua-Abok/finetuned_wav2vec_asr").launch()