adeel707 commited on
Commit
e6614a9
·
verified ·
1 Parent(s): 11135d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -12,6 +12,11 @@ import numpy as np
12
  import scipy.io.wavfile
13
  import scipy.sparse
14
 
 
 
 
 
 
15
  # Load API key from Hugging Face
16
  load_dotenv()
17
  API_KEY = os.getenv("GROQ_API_KEY")
 
12
  import scipy.io.wavfile
13
  import scipy.sparse
14
 
15
+ from huggingface_hub import HfApi
16
+
17
+ # will use api to restart space on a unrecoverable error
18
+ api = HfApi(token=HF_TOKEN)
19
+
20
  # Load API key from Hugging Face
21
  load_dotenv()
22
  API_KEY = os.getenv("GROQ_API_KEY")