Spaces:
Runtime error
Runtime error
Upload prompt.py
Browse files
prompt.py
CHANGED
@@ -330,6 +330,7 @@ class HuggingFaceInferenceNode:
|
|
330 |
self.client = OpenAI(base_url="https://api-inference.huggingface.co/v1/", api_key=huggingface_token)
|
331 |
except Exception as e:
|
332 |
print(e)
|
|
|
333 |
self.prompts_dir = "./prompts"
|
334 |
os.makedirs(self.prompts_dir, exist_ok=True)
|
335 |
|
|
|
330 |
self.client = OpenAI(base_url="https://api-inference.huggingface.co/v1/", api_key=huggingface_token)
|
331 |
except Exception as e:
|
332 |
print(e)
|
333 |
+
self.client = None
|
334 |
self.prompts_dir = "./prompts"
|
335 |
os.makedirs(self.prompts_dir, exist_ok=True)
|
336 |
|