DhirajN commited on
Commit
b7b0044
·
verified ·
1 Parent(s): 1ff6997

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -8,10 +8,12 @@ from huggingface_hub import InferenceClient
8
  import os
9
  import librosa
10
 
11
- # Initialize the InferenceClient for PHI 3
 
 
12
  client = InferenceClient(
13
- "microsoft/Phi-3.5-mini-instruct", # Update this to the correct model name for PHI 3
14
- token=os.getenv("HF_API_TOKEN", "")
15
  )
16
 
17
  # Check if a GPU is available and use it if possible
 
8
  import os
9
  import librosa
10
 
11
+ # Fetch the token from Hugging Face Secrets
12
+ HF_API_TOKEN = os.getenv("HF_API_TOKEN", "")
13
+
14
  client = InferenceClient(
15
+ "microsoft/Phi-3.5-mini-instruct",
16
+ token=HF_API_TOKEN
17
  )
18
 
19
  # Check if a GPU is available and use it if possible