Joshua-Abok
commited on
Commit
β’
d32c550
1
Parent(s):
2a48222
change to finetuned_wav2vec_asr
Browse files
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 |
-
|
|
|
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("
|
|
|
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()
|