Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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=
|
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)
|