litagin commited on
Commit
07c2d2e
·
1 Parent(s): eefa888
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -4,6 +4,7 @@ import warnings
4
  from pathlib import Path
5
 
6
  import gradio as gr
 
7
  import librosa
8
  import spaces
9
  import torch
@@ -12,6 +13,7 @@ from transformers import pipeline
12
 
13
  warnings.filterwarnings("ignore")
14
 
 
15
  is_hf = os.getenv("SYSTEM") == "spaces"
16
 
17
  generate_kwargs = {
 
4
  from pathlib import Path
5
 
6
  import gradio as gr
7
+ import huggingface_hub
8
  import librosa
9
  import spaces
10
  import torch
 
13
 
14
  warnings.filterwarnings("ignore")
15
 
16
+ huggingface_hub.login(token=os.getenv("HF_TOKEN"))
17
  is_hf = os.getenv("SYSTEM") == "spaces"
18
 
19
  generate_kwargs = {