bunyaminergen commited on
Commit
d2458be
·
1 Parent(s): b6462d6
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -6,6 +6,7 @@ import asyncio
6
  import gradio as gr
7
  from omegaconf import OmegaConf
8
  from nemo.collections.asr.models.msdd_models import NeuralDiarizer
 
9
 
10
  # Local imports
11
  from src.audio.utils import Formatter
@@ -58,6 +59,8 @@ async def main(audio_file_path: str):
58
  device = config.runtime.device
59
  compute_type = config.runtime.compute_type
60
  os.environ["PYTORCH_CUDA_ALLOC_CONF"] = config.runtime.cuda_alloc_conf
 
 
61
 
62
  # Initialize Classes
63
  dialogue_detector = DialogueDetecting(delete_original=True)
 
6
  import gradio as gr
7
  from omegaconf import OmegaConf
8
  from nemo.collections.asr.models.msdd_models import NeuralDiarizer
9
+ from huggingface_hub import login
10
 
11
  # Local imports
12
  from src.audio.utils import Formatter
 
59
  device = config.runtime.device
60
  compute_type = config.runtime.compute_type
61
  os.environ["PYTORCH_CUDA_ALLOC_CONF"] = config.runtime.cuda_alloc_conf
62
+ hf_token = os.getenv("HF_TOKEN")
63
+ login(token=hf_token)
64
 
65
  # Initialize Classes
66
  dialogue_detector = DialogueDetecting(delete_original=True)