gokaygokay commited on
Commit
d2aa469
·
verified ·
1 Parent(s): 4798f20

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -322,10 +322,9 @@ from openai import OpenAI
322
 
323
  class HuggingFaceInferenceNode:
324
  def __init__(self):
325
- self.ACCESS_TOKEN = os.getenv("HF_TOKEN")
326
  self.client = OpenAI(
327
  base_url="https://api-inference.huggingface.co/v1/",
328
- api_key=self.ACCESS_TOKEN,
329
  )
330
  self.prompts_dir = "./prompts"
331
  os.makedirs(self.prompts_dir, exist_ok=True)
 
322
 
323
  class HuggingFaceInferenceNode:
324
  def __init__(self):
 
325
  self.client = OpenAI(
326
  base_url="https://api-inference.huggingface.co/v1/",
327
+ api_key=huggingface_token,
328
  )
329
  self.prompts_dir = "./prompts"
330
  os.makedirs(self.prompts_dir, exist_ok=True)